GNU bug report logs -
#16235
24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-argument stringp nil)
Previous Next
Reported by: Drew Adams <drew.adams <at> oracle.com>
Date: Tue, 24 Dec 2013 04:45:02 UTC
Severity: minor
Tags: moreinfo
Found in version 24.3.50
Done: Glenn Morris <rgm <at> gnu.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 16235 in the body.
You can then email your comments to 16235 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#16235
; Package
emacs
.
(Tue, 24 Dec 2013 04:45: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, 24 Dec 2013 04:45:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
This was from my setup, not emacs -Q.
I used `M' in Dired, and entered "a-w" as the argument, then OK'd
modifying the marked files. I got this backtrace:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
find-file-name-handler(nil dired-uncache)
dired-uncache(nil)
dired-do-redisplay(nil)
dired-do-chmod(nil)
call-interactively(dired-do-chmod nil nil)
command-execute(dired-do-chmod)
None of the functions listed in the backtrace are from my code; all are
the vanilla versions.
However, this happened only once. I could not reproduce it thereafter,
in either my setup or emacs -Q. If it helps somehow, fine. If not,
feel free to close it.
Looking at the code for `dired-do-redisplay', it seems that when I
invoked `dired-do-chmod' (in Dired, of course) the value of
`dired-directory' was nil.
The doc string for `dired-directory' does not describe any situation in
which it can be or should be nil. It says only that the value is a
string or a non-empty list.
Is the doc string incomplete? Is it a bug that somehow it had the value
nil (in Dired)? Nil is the default value. And thatit seems to be the
value of the variable in any non-Dired buffer.
I would think that, at the very least:
1. The doc string should mention what a nil value means.
2. The code should check that the variable is non-nil, and provide a
better error message for the nil case than just wrong-type-argument.
`dired-directory' is not mentioned in the Elisp manual.
In GNU Emacs 24.3.50.1 (i686-pc-mingw32)
of 2013-12-22 on ODIEONE
Bzr revision: 115700 xfq.free <at> gmail.com-20131222231942-q8ftfeg3ft2a1t83
Windowing system distributor `Microsoft Corp.', version 6.1.7601
Configured using:
`configure --prefix=/c/Devel/emacs/binary --enable-checking=yes,glyphs
'CFLAGS=-O0 -g3' CPPFLAGS=-Ic:/Devel/emacs/include
LDFLAGS=-Lc:/Devel/emacs/lib'
Reply sent
to
Glenn Morris <rgm <at> gnu.org>
:
You have taken responsibility.
(Wed, 05 Feb 2014 22:25:02 GMT)
Full text and
rfc822 format available.
Notification sent
to
Drew Adams <drew.adams <at> oracle.com>
:
bug acknowledged by developer.
(Wed, 05 Feb 2014 22:25:03 GMT)
Full text and
rfc822 format available.
Message #10 received at 16235-done <at> debbugs.gnu.org (full text, mbox):
It's an internal variable, it should not be nil, since you can't say or
repeat how it came to be nil, nothing can be done.
bug archived.
Request was from
Debbugs Internal Request <help-debbugs <at> gnu.org>
to
internal_control <at> debbugs.gnu.org
.
(Thu, 06 Mar 2014 12:24:05 GMT)
Full text and
rfc822 format available.
This bug report was last modified 11 years and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.