GNU bug report logs -
#11687
24.1; (wrong-type-argument stringp nil) for `dired-do-chmod' (actually, `dired-do-uncache')
Previous Next
Reported by: "Drew Adams" <drew.adams <at> oracle.com>
Date: Tue, 12 Jun 2012 23:47:01 UTC
Severity: normal
Tags: notabug, wontfix
Found in version 24.1
Done: Juri Linkov <juri <at> jurta.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 11687 in the body.
You can then email your comments to 11687 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#11687
; Package
emacs
.
(Tue, 12 Jun 2012 23:47: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, 12 Jun 2012 23:47:02 GMT)
Full text and
rfc822 format available.
Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):
I did not see this with emacs -Q, but this is what I saw:
I marked some files in Dired, then did `dired-do-chmod'. At the prompt
I entered "a-w". This is the backtrace:
Debugger entered--Lisp error: (wrong-type-argument stringp nil)
* find-file-name-handler(nil dired-uncache)
* (let ((handler (find-file-name-handler dir (quote dired-uncache)))) (if
handler (funcall handler (quote dired-uncache) dir)))
* dired-uncache(nil)
* (if (and test-for-subdir (dired-get-subdir)) (let* ((dir (dired-get-subdir))
(switches (cdr (assoc-string dir dired-switches-alist)))) (dired-insert-subdir
dir (when arg (read-string "Switches for listing: " (or switches
dired-subdir-switches dired-actual-switches))))) (message "Redisplaying...")
(dired-uncache (if (consp dired-directory) (car dired-directory)
dired-directory)) (dired-map-over-marks (let ((fname (dired-get-filename))
(dired-after-readin-hook nil)) (message "Redisplaying... %s" fname)
(dired-update-file-line fname)) arg) (run-hooks (quote dired-after-readin-hook))
(dired-move-to-filename) (message "Redisplaying...done"))
* dired-do-redisplay(nil)
* (let* ((files (dired-get-marked-files t arg)) (modestr (and (stringp (car
files)) (nth 8 (file-attributes (car files))))) (default (and (stringp modestr)
(string-match "^.\\(...\\)\\(...\\)\\(...\\)$" modestr)
(replace-regexp-in-string "-" "" (format "u=%s,g=%s,o=%s" (match-string 1
modestr) (match-string 2 modestr) (match-string 3 modestr))))) (modes
(dired-mark-read-string "Change mode of %s to: " nil (quote chmod) arg files
default)) num-modes) (cond ((equal modes "") (error "No file mode specified"))
((string-match "^[0-7]+" modes) (setq num-modes (string-to-number modes 8))))
(dolist (file files) (set-file-modes file (if num-modes num-modes
(file-modes-symbolic-to-number modes (file-modes file))))) (dired-do-redisplay
arg))
dired-do-chmod(nil)
* call-interactively(dired-do-chmod nil nil)
In GNU Emacs 24.1.1 (i386-mingw-nt5.1.2600)
of 2012-06-10 on MARVIN
Windowing system distributor `Microsoft Corp.', version 5.1.2600
Configured using:
`configure --with-gcc (4.6) --cflags
-ID:/devel/emacs/libs/libXpm-3.5.8/include
-ID:/devel/emacs/libs/libXpm-3.5.8/src
-ID:/devel/emacs/libs/libpng-dev_1.4.3-1/include
-ID:/devel/emacs/libs/zlib-dev_1.2.5-2/include
-ID:/devel/emacs/libs/giflib-4.1.4-1/include
-ID:/devel/emacs/libs/jpeg-6b-4/include
-ID:/devel/emacs/libs/tiff-3.8.2-1/include
-ID:/devel/emacs/libs/gnutls-3.0.9/include'
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11687
; Package
emacs
.
(Sun, 30 Sep 2012 17:58:01 GMT)
Full text and
rfc822 format available.
Message #8 received at 11687 <at> debbugs.gnu.org (full text, mbox):
> I did not see this with emacs -Q, but this is what I saw:
>
> I marked some files in Dired, then did `dired-do-chmod'. At the prompt
> I entered "a-w". This is the backtrace:
>
> Debugger entered--Lisp error: (wrong-type-argument stringp nil)
> * find-file-name-handler(nil dired-uncache)
> * (let ((handler (find-file-name-handler dir (quote dired-uncache)))) (if
> handler (funcall handler (quote dired-uncache) dir)))
> * dired-uncache(nil)
> * (if (and test-for-subdir (dired-get-subdir)) (let* ((dir (dired-get-subdir))
> (switches (cdr (assoc-string dir dired-switches-alist)))) (dired-insert-subdir
> dir (when arg (read-string "Switches for listing: " (or switches
> dired-subdir-switches dired-actual-switches))))) (message "Redisplaying...")
> (dired-uncache (if (consp dired-directory) (car dired-directory)
> dired-directory)) (dired-map-over-marks (let ((fname (dired-get-filename))
> (dired-after-readin-hook nil)) (message "Redisplaying... %s" fname)
> (dired-update-file-line fname)) arg) (run-hooks (quote dired-after-readin-hook))
> (dired-move-to-filename) (message "Redisplaying...done"))
> * dired-do-redisplay(nil)
> * (let* ((files (dired-get-marked-files t arg)) (modestr (and (stringp (car
> files)) (nth 8 (file-attributes (car files))))) (default (and (stringp modestr)
> (string-match "^.\\(...\\)\\(...\\)\\(...\\)$" modestr)
> (replace-regexp-in-string "-" "" (format "u=%s,g=%s,o=%s" (match-string 1
> modestr) (match-string 2 modestr) (match-string 3 modestr))))) (modes
> (dired-mark-read-string "Change mode of %s to: " nil (quote chmod) arg files
> default)) num-modes) (cond ((equal modes "") (error "No file mode specified"))
> ((string-match "^[0-7]+" modes) (setq num-modes (string-to-number modes 8))))
> (dolist (file files) (set-file-modes file (if num-modes num-modes
> (file-modes-symbolic-to-number modes (file-modes file))))) (dired-do-redisplay
> arg))
> dired-do-chmod(nil)
> * call-interactively(dired-do-chmod nil nil)
This bug can happen when you do `dired-do-chmod' on a non-Dired buffer
(it calls `dired-do-redisplay' that fails when called not in Dired).
If you can't reproduce this bug, it should be closed as notabug.
Information forwarded
to
bug-gnu-emacs <at> gnu.org
:
bug#11687
; Package
emacs
.
(Sun, 30 Sep 2012 20:52:02 GMT)
Full text and
rfc822 format available.
Message #11 received at 11687 <at> debbugs.gnu.org (full text, mbox):
> > I did not see this with emacs -Q, but this is what I saw:
> >
> > I marked some files in Dired, then did `dired-do-chmod'.
> > At the prompt I entered "a-w". This is the backtrace:
> >
> > Debugger entered--Lisp error: (wrong-type-argument stringp nil)
>
> This bug can happen when you do `dired-do-chmod' on a non-Dired buffer
> (it calls `dired-do-redisplay' that fails when called not in Dired).
> If you can't reproduce this bug, it should be closed as notabug.
I see. But I was in Dired at the time, I'm pretty sure. Anyway, so far I have
not seen the problem again, so if you would like to close the bug feel free to
do so.
(That was with the 24.1 release, however, not with a development snapshot.)
Added tag(s) notabug and wontfix.
Request was from
Juri Linkov <juri <at> jurta.org>
to
control <at> debbugs.gnu.org
.
(Mon, 01 Oct 2012 17:57:02 GMT)
Full text and
rfc822 format available.
bug closed, send any further explanations to
11687 <at> debbugs.gnu.org and "Drew Adams" <drew.adams <at> oracle.com>
Request was from
Juri Linkov <juri <at> jurta.org>
to
control <at> debbugs.gnu.org
.
(Mon, 01 Oct 2012 17:57:02 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
.
(Tue, 30 Oct 2012 11:24:04 GMT)
Full text and
rfc822 format available.
This bug report was last modified 12 years and 296 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.