GNU bug report logs - #5551
23.1.92; Dired shows wrongly whole directory contents

Previous Next

Package: emacs;

Reported by: Michael Albinus <michael.albinus <at> gmx.de>

Date: Tue, 9 Feb 2010 12:43:02 UTC

Severity: normal

Done: Michael Albinus <michael.albinus <at> gmx.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Michael Albinus <michael.albinus <at> gmx.de>
To: 5551 <at> debbugs.gnu.org
Subject: bug#5551: 23.1.92; Dired shows wrongly whole directory contents
Date: Tue, 09 Feb 2010 16:27:09 +0100
> 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 99 days ago.

Previous Next


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