GNU bug report logs -
#5551
23.1.92; Dired shows wrongly whole directory contents
Previous Next
Full log
Message #8 received at 5551 <at> debbugs.gnu.org (full text, mbox):
> According to the doc, dired shall show single file entries when called
> with a list of file names. If a file name is a directory, this works OK
> with remote directory names. But with local directory names, it shows
> the whole directory contents, which is wrong.
The following patch ought to solve this:
--8<---------------cut here---------------start------------->8---
*** lisp/files.el 2010-01-27 03:36:36 +0000
--- lisp/files.el 2010-02-09 15:14:12 +0000
***************
*** 5699,5704 ****
--- 5699,5709 ----
(shell-quote-wildcard-pattern pattern))))
;; SunOS 4.1.3, SVr4 and others need the "." to list the
;; directory if FILE is a symbolic link.
+ (unless full-directory-p
+ (setq switches
+ (if (stringp switches)
+ (concat switches " -d")
+ (add-to-list 'switches "-d" 'append))))
(apply 'call-process
insert-directory-program nil t nil
(append
--8<---------------cut here---------------end--------------->8---
Any objections to install the patch? Stefan?
Best regards, Michael.
This bug report was last modified 15 years and 121 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.