GNU bug report logs - #6636
24.0.50; special dired feature confuse all dired commands.

Previous Next

Package: emacs;

Reported by: Thierry Volpiatto <thierry.volpiatto <at> gmail.com>

Date: Thu, 15 Jul 2010 07:38:02 UTC

Severity: normal

Found in version 24.0.50

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: "Drew Adams" <drew.adams <at> oracle.com>
To: "'Thierry Volpiatto'" <thierry.volpiatto <at> gmail.com>, <6636 <at> debbugs.gnu.org>
Subject: bug#6636: 24.0.50; special dired feature confuse all dired commands.
Date: Thu, 15 Jul 2010 11:16:58 -0700
> Start in directory "/home/you"
> (dired (cons "My Working dir" (dired-get-marked-files)))
> 
> Now trying any dired commands (e.g delete, copy etc...) partially fail
> with wrong type argument stringp....(("/foo" "/bar" "/baz"))
> 
> If you eval dired-buffers you can see that "/home/you" is linked to
> buffer "My Working dir" (done by `dired-advertise')
> which is wrong and confuse all dired commands.

The is in `dired-buffers-for-dir'.  It has this code:

(file-name-non-directory dired-directory)

This is wrong. `dired-directory' has every right to be a cons, as it is in this
case.

Function `dired-buffers-for-dir' was introduced in 23.1, creating this
regression wrt Emacs 22.3 and prior releases.

--

FWIW -

This problem, like previous (fixed) bugs surrounding the use of a cons as the
arg to `dired', comes about because this wonderful Dired feature is not
sufficiently well known.  It is hardly even documented, yet it is very useful.

IOW, IMO the first bug wrt this is that the doc is paltry wrt this feature.
Code bugs tend to follow, because Emacs developers (like Emacs users in general)
are not thinking about the cons case for `dired-directory'.





This bug report was last modified 14 years and 314 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.