all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Drew Adams <drew.adams@oracle.com>
To: 16235@debbugs.gnu.org
Subject: bug#16235: 24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-argument stringp nil)
Date: Mon, 23 Dec 2013 20:43:35 -0800 (PST)	[thread overview]
Message-ID: <532fa0c6-f68a-46d0-ac35-8bf40e5aa6d3@default> (raw)

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@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	other threads:[~2013-12-24  4:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-12-24  4:43 Drew Adams [this message]
2014-02-05 22:24 ` bug#16235: 24.3.50; `dired-uncache' when tried `dired-do-chmod': (wrong-type-argument stringp nil) Glenn Morris

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=532fa0c6-f68a-46d0-ac35-8bf40e5aa6d3@default \
    --to=drew.adams@oracle.com \
    --cc=16235@debbugs.gnu.org \
    /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.