From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.bugs Subject: bug#5551: 23.1.92; Dired shows wrongly whole directory contents Date: Wed, 10 Feb 2010 08:47:01 -0800 Message-ID: References: <87pr4epomb.fsf@gmx.de> <87pr4dqw3k.fsf@stupidchicken.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265821069 5505 80.91.229.12 (10 Feb 2010 16:57:49 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Feb 2010 16:57:49 +0000 (UTC) Cc: 5551@debbugs.gnu.org To: "'Chong Yidong'" , "'Michael Albinus'" Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Feb 10 17:57:46 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 1NfFsn-0000Gc-Fh for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 17:57:45 +0100 Original-Received: from localhost ([127.0.0.1]:38543 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfFsm-0001Vo-Rh for geb-bug-gnu-emacs@m.gmane.org; Wed, 10 Feb 2010 11:57:45 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfFne-00077u-BG for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 11:52:26 -0500 Original-Received: from [199.232.76.173] (port=35220 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfFnd-000779-PY for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 11:52:25 -0500 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NfFnc-00040N-1U for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 11:52:25 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:45783) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NfFnb-000409-MD for bug-gnu-emacs@gnu.org; Wed, 10 Feb 2010 11:52:23 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1NfFjO-00087J-FE; Wed, 10 Feb 2010 11:48:02 -0500 X-Loop: bug-gnu-emacs@gnu.org Resent-From: "Drew Adams" Original-Sender: debbugs-submit-bounces@debbugs.gnu.org Resent-To: owner@debbugs.gnu.org Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 10 Feb 2010 16:48: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.126582045231175 (code B ref 5551); Wed, 10 Feb 2010 16:48:02 +0000 Original-Received: (at 5551) by debbugs.gnu.org; 10 Feb 2010 16:47:32 +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 1NfFit-00086m-Sa for submit@debbugs.gnu.org; Wed, 10 Feb 2010 11:47:32 -0500 Original-Received: from acsinet11.oracle.com ([141.146.126.233]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfFip-00086Y-Nr for 5551@debbugs.gnu.org; Wed, 10 Feb 2010 11:47:29 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o1AGlMao025612 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Wed, 10 Feb 2010 16:47:24 GMT Original-Received: from acsmt353.oracle.com (acsmt353.oracle.com [141.146.40.153]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o19MZMRK026380; Wed, 10 Feb 2010 16:47:19 GMT Original-Received: from abhmt005.oracle.com by acsmt353.oracle.com with ESMTP id 22554741265820426; Wed, 10 Feb 2010 08:47:06 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Feb 2010 08:47:05 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <87pr4dqw3k.fsf@stupidchicken.com> Thread-Index: AcqqNuA07UEVHbzqQIyJzSJ03sUNPQAOToHQ X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt353.oracle.com [141.146.40.153] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4B72E31A.0027:SCFMA4539814,ss=1,fgs=0 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Wed, 10 Feb 2010 11:48: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:35022 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 doc seems ambiguous to me, and it is not clear to me what is the > better behavior. Do you have an argument for why displaying just the > directory name is better? > > But the present behavior has been around since at least Emacs 22, so I > don't think we should make this change right now in any case. Please apply Michael's patch. When `dired' is passed a cons arg (a list of file or directory names), it should show a Dired buffer with only those names. A directory name should be inserted as a single line - the directory contents should *not* be inserted. I confirm that this works correctly on Windows (e.g. 23.1 and 23-1-91 pretest), but it works incorrectly on Linux with Emacs 21.3.1. (I don't have access to other Emacs versions on Linux.)