bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#5551: 23.1.92; Dired shows wrongly whole directory contents


From: Michael Albinus
Subject: bug#5551: 23.1.92; Dired shows wrongly whole directory contents
Date: Tue, 09 Feb 2010 16:27:09 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux)

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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]