From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Albinus Newsgroups: gmane.emacs.bugs Subject: bug#5551: 23.1.92; Dired shows wrongly whole directory contents Date: Tue, 09 Feb 2010 16:27:09 +0100 Message-ID: <87tytql99u.fsf@gmx.de> References: <87pr4epomb.fsf@gmx.de> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1265731080 10773 80.91.229.12 (9 Feb 2010 15:58:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 9 Feb 2010 15:58:00 +0000 (UTC) To: 5551@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 09 16:57:56 2010 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NesSP-0006Ly-SO for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 16:57:50 +0100 Original-Received: from localhost ([127.0.0.1]:48634 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NesQz-0003mK-7t for geb-bug-gnu-emacs@m.gmane.org; Tue, 09 Feb 2010 10:55:29 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NesQu-0003mF-NE for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 10:55:24 -0500 Original-Received: from [199.232.76.173] (port=57742 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NesQt-0003m7-9J for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 10:55:23 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NesQq-00019Q-PL for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 10:55:22 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45731) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NesPT-00011T-GK for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 10:55:20 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1Nes0Q-0007A6-DA; Tue, 09 Feb 2010 10:28:02 -0500 X-Loop: bug-gnu-emacs@gnu.org In-Reply-To: <87pr4epomb.fsf@gmx.de> Resent-From: Michael Albinus Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 09 Feb 2010 15:28:02 +0000 Resent-Message-ID: Resent-Sender: bug-gnu-emacs@gnu.org X-Emacs-PR-Message: followup 5551 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 5551-submit@debbugs.gnu.org id=B5551.126572924627504 (code B ref 5551); Tue, 09 Feb 2010 15:28:02 +0000 Original-Received: (at 5551) by debbugs.gnu.org; 9 Feb 2010 15:27:26 +0000 Original-Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nerzp-00079Y-Ob for submit@debbugs.gnu.org; Tue, 09 Feb 2010 10:27:25 -0500 Original-Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1Nerzn-00079J-4a for 5551@debbugs.gnu.org; Tue, 09 Feb 2010 10:27:24 -0500 Original-Received: (qmail invoked by alias); 09 Feb 2010 15:27:16 -0000 Original-Received: from p4FC00CAD.dip0.t-ipconnect.de (EHLO LKG29808F.local) [79.192.12.173] by mail.gmx.net (mp026) with SMTP; 09 Feb 2010 16:27:16 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/qcPd+w4PqRID9wjG6K9ycDi2d5OWllfBwXIEwbW rqFx0PEKL5uK4K User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.56999999999999995 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 09 Feb 2010 10:28:02 -0500 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:34980 Archived-At: > 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.