GNU bug report logs -
#35390
26.2; [PATCH] `ls-lisp--dired', like `dired', should accept nil DIR-OR-LIST argument
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 23 Apr 2019 12:26:02 UTC
Severity: minor
Tags: fixed
Found in version 26.2
Fixed in version 27.1
Done: Lars Ingebrigtsen <larsi <at> gnus.org>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 35390 in the body.
You can then email your comments to 35390 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#35390
; Package
emacs
.
(Tue, 23 Apr 2019 12:26:02 GMT)
Full text and
rfc822 format available.
Acknowledgement sent
to
Drew Adams <drew.adams <at> oracle.com>
:
New bug report received and forwarded. Copy sent to
bug-gnu-emacs <at> gnu.org
.
(Tue, 23 Apr 2019 12:26:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
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'.
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.
[BTW, the doc string of `dired' has this as its last line, which doesn't
make sense - DIRNAME is either a directory name or a cons of a directory
name and a list of file names:
"If DIRNAME is already in a Dired buffer"...
I think it's trying to say that if _the directory specified by DIRNAME_
is already shown in a Dired buffer...]
In GNU Emacs 26.2 (build 1, x86_64-w64-mingw32)
of 2019-04-13
Repository revision: fd1b34bfba8f3f6298df47c8e10b61530426f749
Windowing system distributor `Microsoft Corp.', version 10.0.17134
Configured using:
`configure --without-dbus --host=x86_64-w64-mingw32
--without-compress-install 'CFLAGS=-O2 -static -g3''
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#35390
; Package
emacs
.
(Sun, 23 Jun 2019 17:26:02 GMT)
Full text and
rfc822 format available.
Message #8 received at 35390 <at> debbugs.gnu.org (full text, mbox):
Drew Adams <drew.adams <at> 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
Added tag(s) fixed.
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Jun 2019 17:26:04 GMT)
Full text and
rfc822 format available.
bug marked as fixed in version 27.1, send any further explanations to
35390 <at> debbugs.gnu.org and Drew Adams <drew.adams <at> oracle.com>
Request was from
Lars Ingebrigtsen <larsi <at> gnus.org>
to
control <at> debbugs.gnu.org
.
(Sun, 23 Jun 2019 17:26:04 GMT)
Full text and
rfc822 format available.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Mon, 22 Jul 2019 11:24:10 GMT)
Full text and
rfc822 format available.
This bug report was last modified 4 years and 273 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.