all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Juri Linkov <juri@jurta.org>
To: "Drew Adams" <drew.adams@oracle.com>
Cc: 11687@debbugs.gnu.org
Subject: bug#11687: 24.1; (wrong-type-argument stringp nil) for `dired-do-chmod' (actually, `dired-do-uncache')
Date: Sun, 30 Sep 2012 20:56:10 +0300	[thread overview]
Message-ID: <87ipavgzt0.fsf@mail.jurta.org> (raw)
In-Reply-To: <5D9D0F04DFAD4CBB9517A166DB26D531@us.oracle.com> (Drew Adams's message of "Tue, 12 Jun 2012 16:43:49 -0700")

> 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.





  reply	other threads:[~2012-09-30 17:56 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-06-12 23:43 bug#11687: 24.1; (wrong-type-argument stringp nil) for `dired-do-chmod' (actually, `dired-do-uncache') Drew Adams
2012-09-30 17:56 ` Juri Linkov [this message]
2012-09-30 20:50   ` Drew Adams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87ipavgzt0.fsf@mail.jurta.org \
    --to=juri@jurta.org \
    --cc=11687@debbugs.gnu.org \
    --cc=drew.adams@oracle.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.