[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
bug#35390: 26.2; [PATCH] `ls-lisp--dired', like `dired', should accept n
From: |
Lars Ingebrigtsen |
Subject: |
bug#35390: 26.2; [PATCH] `ls-lisp--dired', like `dired', should accept nil DIR-OR-LIST argument |
Date: |
Sun, 23 Jun 2019 19:25:15 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/27.0.50 (gnu/linux) |
Drew Adams <drew.adams@oracle.com> writes:
> The doc of command `dired' does not define the behavior if its DIRNAME
> argument is not a string or a cons. `dired' just passes this arg to
> `dired-noselect', and `dired-noselect' starts by doing this:
>
> (or dir-or-list (setq dir-or-list default-directory))
>
> This means that `dired', via `dired-noselect', handles a nil value for
> DIRNAME by using the value of `default-directory' (a string).
>
> `ls-lisp--dired' should do the same - it is a stand-in for `dired'.
Makes sense.
> Currently it raises an error if passed nil as the directory. It would
> make sense to add this at the beginning of `ls-lisp--dired' (just after
> the `interactive' spec):
>
> (unless dir-or-list (setq dir-or-list default-directory))
>
> That's the "patch" - just add that line as indicated.
In the future, could you submit code changes as real patches, with
changelog entries on the normal format? Thanks.
I've now done this change manually, though.
--
(domestic pets only, the antidote for overdose, milk.)
bloggy blog: http://lars.ingebrigtsen.no
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- bug#35390: 26.2; [PATCH] `ls-lisp--dired', like `dired', should accept nil DIR-OR-LIST argument,
Lars Ingebrigtsen <=