From: Michael Albinus <michael.albinus@gmx.de>
To: 5551@debbugs.gnu.org
Subject: bug#5551: 23.1.92; Dired shows wrongly whole directory contents
Date: Tue, 09 Feb 2010 16:27:09 +0100 [thread overview]
Message-ID: <87tytql99u.fsf@gmx.de> (raw)
In-Reply-To: <87pr4epomb.fsf@gmx.de>
> 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.
next prev parent reply other threads:[~2010-02-09 15:27 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-09 12:42 bug#5551: 23.1.92; Dired shows wrongly whole directory contents Michael Albinus
2010-02-09 15:27 ` Michael Albinus [this message]
2010-02-10 9:27 ` Chong Yidong
2010-02-10 9:46 ` Michael Albinus
2010-02-13 7:33 ` Chong Yidong
2010-02-14 9:31 ` Michael Albinus
2010-02-10 16:47 ` Drew Adams
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=87tytql99u.fsf@gmx.de \
--to=michael.albinus@gmx.de \
--cc=5551@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.