From unknown Tue Jun 17 20:09:04 2025 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-Mailer: MIME-tools 5.509 (Entity 5.509) Content-Type: text/plain; charset=utf-8 From: bug#5551 <5551@debbugs.gnu.org> To: bug#5551 <5551@debbugs.gnu.org> Subject: Status: 23.1.92; Dired shows wrongly whole directory contents Reply-To: bug#5551 <5551@debbugs.gnu.org> Date: Wed, 18 Jun 2025 03:09:04 +0000 retitle 5551 23.1.92; Dired shows wrongly whole directory contents reassign 5551 emacs submitter 5551 Michael Albinus severity 5551 normal thanks From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 07:42:32 2010 Received: (at submit) by debbugs.gnu.org; 9 Feb 2010 12:42:32 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NepQG-0005L8-5n for submit@debbugs.gnu.org; Tue, 09 Feb 2010 07:42:32 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NepQD-0005L1-Hd for submit@debbugs.gnu.org; Tue, 09 Feb 2010 07:42:30 -0500 Received: from mx10.gnu.org ([199.232.76.166]:35792) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NepQ8-0006Hc-DS for submit@debbugs.gnu.org; Tue, 09 Feb 2010 07:42:24 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NepPz-00084R-FY for submit@debbugs.gnu.org; Tue, 09 Feb 2010 07:42:23 -0500 X-Spam-Checker-Version: SpamAssassin 3.1.0 (2005-09-13) on monty-python X-Spam-Level: X-Spam-Status: No, score=-2.6 required=5.0 tests=AWL,BAYES_00, UNPARSEABLE_RELAY autolearn=unavailable version=3.1.0 Received: from lists.gnu.org ([199.232.76.165]:37058) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NepPz-000846-8K for submit@debbugs.gnu.org; Tue, 09 Feb 2010 07:42:15 -0500 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NepPy-0005Ba-SB for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 07:42:14 -0500 Received: from [199.232.76.173] (port=35303 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NepPy-0005BQ-Hq for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 07:42:14 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NepPs-00082t-VK for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 07:42:14 -0500 Received: from mail.gmx.net ([213.165.64.20]:40463) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1NepPs-00082h-CF for bug-gnu-emacs@gnu.org; Tue, 09 Feb 2010 07:42:08 -0500 Received: (qmail invoked by alias); 09 Feb 2010 12:42:06 -0000 Received: from p4FC00CAD.dip0.t-ipconnect.de (EHLO LKG29808F.local) [79.192.12.173] by mail.gmx.net (mp049) with SMTP; 09 Feb 2010 13:42:06 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+DXf1UFX2DQSuHysoc1UJUVkTIkF3QaumhPAShe8 YuxLe8ExReSBGh From: Michael Albinus To: bug-gnu-emacs@gnu.org Subject: 23.1.92; Dired shows wrongly whole directory contents Date: Tue, 09 Feb 2010 13:42:04 +0100 Message-ID: <87pr4epomb.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.46000000000000002 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-Spam-Score: -4.3 (----) X-Debbugs-Envelope-To: submit X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -4.3 (----) This bug report will be sent to the Free Software Foundation, not to your local site managers! Please write in English if possible, because the Emacs maintainers usually do not have translators to read other languages for them. 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. Example: --8<---------------cut here---------------start------------->8--- (dired '("foo" "~/" "/ftp:anonymous@alpha.gnu.org:/gnu/emacs/pretest/windows")) --8<---------------cut here---------------end--------------->8--- results in --8<---------------cut here---------------start------------->8--- /home/albinus/lisp: total 2204 drwxr-xr-x 47 albinus albinus 4096 2010-02-09 13:34 . drwxr-xr-x 4 root root 4096 2009-01-26 13:38 .. lrwxrwxrwx 1 albinus albinus 7 2009-10-11 14:59 aaa -> /.emacs drwx------ 3 albinus albinus 4096 2009-08-04 16:25 .arch-params ... drwxr-xr-x 2 1003 1003 4096 Jan 03 13:40 /ftp:anonymous@alpha.gnu.org:/gnu/emacs/pretest/windows --8<---------------cut here---------------end--------------->8--- But I would have expected --8<---------------cut here---------------start------------->8--- /home/albinus/lisp: total 2204 drwxr-xr-x 47 albinus albinus 4096 2010-02-09 13:34 /home/albinus drwxr-xr-x 2 1003 1003 4096 Jan 03 13:40 /ftp:anonymous@alpha.gnu.org:/gnu/emacs/pretest/windows --8<---------------cut here---------------end--------------->8--- If Emacs crashed, and you have the Emacs process in the gdb debugger, please include the output from the following gdb commands: `bt full' and `xbacktrace'. For information about debugging Emacs, please read the file /home/albinus/src/emacs/etc/DEBUG. In GNU Emacs 23.1.92.4 (i686-pc-linux-gnu, GTK+ Version 2.16.1) of 2010-02-05 on ubuntu Windowing system distributor `The X.Org Foundation', version 11.0.10600000 Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: en_US.UTF-8 value of $XMODIFIERS: nil locale-coding-system: utf-8-unix default enable-multibyte-characters: t Major mode: Text Minor modes in effect: diff-auto-refine-mode: t display-time-mode: t shell-dirtrack-mode: t iswitchb-mode: t icomplete-mode: t partial-completion-mode: t show-paren-mode: t tooltip-mode: t mouse-wheel-mode: t menu-bar-mode: t file-name-shadow-mode: t global-font-lock-mode: t font-lock-mode: t blink-cursor-mode: t auto-encryption-mode: t auto-compression-mode: t column-number-mode: t line-number-mode: t transient-mark-mode: t Recent input: y q C-x 0 C-x C-e C-x k C-x 0 C-x C-e C-x k C-x 0 C-x C-e C-x k C-x C-e C-x k C-x k x b u g r e p o r Recent messages: # Mark set Doing CD...done Listing /ftp:anonymous@alpha.gnu.org:/gnu/emacs/pretest/...done # Mark set Doing CD...done Listing /ftp:anonymous@alpha.gnu.org:/gnu/emacs/pretest/windows/...done if: File no longer exists; type `g' to update dired buffer Mark set Load-path shadows: ~/src/tramp/lisp/tramp-imap hides ~/lisp/tramp-imap ~/src/tramp/lisp/tramp-gvfs hides ~/lisp/tramp-gvfs ~/src/tramp/lisp/tramp-fish hides /usr/local/src/emacs/lisp/net/tramp-fish ~/src/tramp/lisp/tramp-cmds hides /usr/local/src/emacs/lisp/net/tramp-cmds ~/src/tramp/lisp/tramp-gvfs hides /usr/local/src/emacs/lisp/net/tramp-gvfs ~/lisp/dbus hides /usr/local/src/emacs/lisp/net/dbus ~/src/tramp/lisp/tramp-cache hides /usr/local/src/emacs/lisp/net/tramp-cache ~/src/tramp/lisp/tramp-uu hides /usr/local/src/emacs/lisp/net/tramp-uu ~/src/tramp/lisp/tramp-smb hides /usr/local/src/emacs/lisp/net/tramp-smb ~/src/tramp/lisp/tramp hides /usr/local/src/emacs/lisp/net/tramp ~/src/tramp/lisp/tramp-imap hides /usr/local/src/emacs/lisp/net/tramp-imap ~/src/tramp/lisp/tramp-compat hides /usr/local/src/emacs/lisp/net/tramp-compat ~/src/tramp/lisp/tramp-gw hides /usr/local/src/emacs/lisp/net/tramp-gw ~/src/tramp/lisp/tramp-ftp hides /usr/local/src/emacs/lisp/net/tramp-ftp ~/src/tramp/lisp/trampver hides /usr/local/src/emacs/lisp/net/trampver Features: (shadow warnings emacsbug gnus-fun log-view pcvs-util url-cache url-http tls url-gw url-auth url-handlers nnweb mm-url url url-proxy url-privacy url-expand url-methods url-history url-cookie url-util tabify man add-log desktop vc-sccs vc-svn vc-cvs vc-rcs diff-mode cus-start cus-load recentf tree-widget mule-util cc-mode cc-fonts cc-menus cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs find-func utf-7 utf7 starttls imap-hash imap ange-ftp cl-specs edebug info apropos debug vc-bzr gnus-dup multi-isearch ediff-merg ediff-diff ediff-wind ediff-help ediff-util ediff-mult ediff-init ediff noutline outline easy-mmode newcomment vc-git make-mode help-mode view time-stamp dired-aux sort gnus-cite html2text smiley ansi-color mail-extr gnus-agent gnus-srvr nnvirtual gnus-async gnus-bcklg parse-time timezone gnus-score score-mode gnus-ml gnus-msg gnus-art mm-uu mml2015 mm-view smime dig disp-table gnus-cache gnus-sum nnfolder byte-opt bytecomp byte-compile nnml nndraft nnmh nnnil smtpmail gnus-demon nntp gnus-group gnus-undo nnmail mail-source nnoo gnus-start gnus-spec gnus-int gnus-range message sendmail ecomplete rfc822 mml mml-sec mm-decode mm-bodies mm-encode mailcap mail-parse rfc2231 rfc2047 rfc2045 qp ietf-drums mailabbrev gmm-utils mailheader canlock sha1 hex-util hashcash gnus-win gnus gnus-ems nnheader mail-utils wid-edit cperl-mode easymenu time tramp-imap assoc tramp-gw tramp-gvfs zeroconf url-parse url-vars mm-util mail-prsvr dbus xml tramp-fish tramp-smb tramp-cache tramp-ftp tramp-cmds tramp auth-source gnus-util netrc time-date advice help-fns advice-preload shell comint ring password-cache format-spec tramp-compat cl cl-19 trampver epa-file epa derived epg epg-config iswitchb jka-compr icomplete complete paren ps-print ps-def lpr vc-dir ewoc vc vc-dispatcher dired regexp-opt tooltip ediff-hook vc-hooks lisp-float-type mwheel x-win x-dnd font-setting tool-bar dnd fontset image fringe lisp-mode register page menu-bar rfn-eshadow timer select scroll-bar mldrag mouse jit-lock font-lock syntax facemenu font-core frame cham georgian utf-8-lang misc-lang vietnamese tibetan thai tai-viet lao korean japanese hebrew greek romanian slovak czech european ethiopic indian cyrillic chinese case-table epa-hook jka-cmpr-hook help simple abbrev loaddefs button minibuffer faces cus-face files text-properties overlay md5 base64 format env code-pages mule custom widget hashtable-print-readable backquote make-network-process dbusbind system-font-setting font-render-setting gtk x-toolkit x multi-tty emacs) From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 10:27:26 2010 Received: (at 5551) by debbugs.gnu.org; 9 Feb 2010 15:27:26 +0000 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 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 Received: (qmail invoked by alias); 09 Feb 2010 15:27:16 -0000 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 From: Michael Albinus To: 5551@debbugs.gnu.org Subject: Re: bug#5551: 23.1.92; Dired shows wrongly whole directory contents References: <87pr4epomb.fsf@gmx.de> Date: Tue, 09 Feb 2010 16:27:09 +0100 Message-ID: <87tytql99u.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.56999999999999995 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5551 X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 10 04:27:40 2010 Received: (at 5551) by debbugs.gnu.org; 10 Feb 2010 09:27:40 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nf8rE-0002n7-CF for submit@debbugs.gnu.org; Wed, 10 Feb 2010 04:27:40 -0500 Received: from pantheon-po25.its.yale.edu ([130.132.50.119]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nf8r9-0002mx-Gd for 5551@debbugs.gnu.org; Wed, 10 Feb 2010 04:27:38 -0500 Received: from furry (bb116-15-9-83.singnet.com.sg [116.15.9.83]) (authenticated bits=0) by pantheon-po25.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o1A9RUDb023596 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 10 Feb 2010 04:27:32 -0500 Received: by furry (Postfix, from userid 1000) id B9475C05D; Wed, 10 Feb 2010 04:27:27 -0500 (EST) From: Chong Yidong To: Michael Albinus Subject: Re: bug#5551: 23.1.92; Dired shows wrongly whole directory contents References: <87pr4epomb.fsf@gmx.de> Date: Wed, 10 Feb 2010 04:27:27 -0500 In-Reply-To: <87pr4epomb.fsf@gmx.de> (Michael Albinus's message of "Tue, 09 Feb 2010 13:42:04 +0100") Message-ID: <87pr4dqw3k.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5551 Cc: 5551@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Michael Albinus writes: > 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. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 10 04:47:11 2010 Received: (at 5551) by debbugs.gnu.org; 10 Feb 2010 09:47:11 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nf9A7-00032T-6Q for submit@debbugs.gnu.org; Wed, 10 Feb 2010 04:47:11 -0500 Received: from mailrelay2.alcatel.de ([194.113.59.96]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Nf99q-000320-4b for 5551@debbugs.gnu.org; Wed, 10 Feb 2010 04:47:10 -0500 Received: from destgsu0048.stgl.sel.alcatel.de (destgsu0048.de.alcatel-lucent.com [149.204.242.4]) by mailrelay2.alcatel.de (8.13.8/8.13.8/ICT) with ESMTP id o1A9koPv001569; Wed, 10 Feb 2010 10:46:50 +0100 Received: from slbhn1.alcatel.de (slbhn1.de.alcatel-lucent.com [149.204.90.35]) by destgsu0048.stgl.sel.alcatel.de (8.12.3/8.12.3) with ESMTP id o1A9knu9006809; Wed, 10 Feb 2010 10:46:49 +0100 (MET) From: Michael Albinus To: Chong Yidong Subject: Re: bug#5551: 23.1.92; Dired shows wrongly whole directory contents References: <87pr4epomb.fsf@gmx.de> <87pr4dqw3k.fsf@stupidchicken.com> Date: Wed, 10 Feb 2010 10:46:48 +0100 In-Reply-To: <87pr4dqw3k.fsf@stupidchicken.com> (Chong Yidong's message of "Wed, 10 Feb 2010 10:27:27 +0100") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Alcanet-virus-scanned: o1A9knu9006809 at destgsu0048.stgl.sel.alcatel.de X-Scanned-By: MIMEDefang 2.57 on 149.204.45.73 X-Spam-Score: -6.6 (------) X-Debbugs-Envelope-To: 5551 Cc: Drew Adams , "5551@debbugs.gnu.org" <5551@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.6 (------) Chong Yidong writes: > 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? Have you tried the example I gave in the bug report? There is definitely an error, if default-directory points to "~/somewhere/else", and you apply (dired '("foo" "~/")) You will see the relative file names listed from "~/", but if you click on a file name, you cannot open, because default-directory is still "~/somewhere/else". My proposed change was influenced by the comment in front of insert-directory: ;; insert-directory ;; - must insert _exactly_one_line_ describing FILE if WILDCARD and ;; FULL-DIRECTORY-P is nil. ;; The single line of output must display FILE's name as it was ;; given, namely, an absolute path name. > 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. It was also in Emacs 21.3 (Drew Adams has tested). But it is still an error. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Wed Feb 10 11:47:32 2010 Received: (at 5551) by debbugs.gnu.org; 10 Feb 2010 16:47:32 +0000 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 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 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 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 Received: from abhmt005.oracle.com by acsmt353.oracle.com with ESMTP id 22554741265820426; Wed, 10 Feb 2010 08:47:06 -0800 Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Wed, 10 Feb 2010 08:47:05 -0800 From: "Drew Adams" To: "'Chong Yidong'" , "'Michael Albinus'" References: <87pr4epomb.fsf@gmx.de> <87pr4dqw3k.fsf@stupidchicken.com> Subject: RE: bug#5551: 23.1.92; Dired shows wrongly whole directory contents Date: Wed, 10 Feb 2010 08:47:01 -0800 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit 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-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 5551 Cc: 5551@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -6.4 (------) > > 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.) From debbugs-submit-bounces@debbugs.gnu.org Sat Feb 13 02:33:30 2010 Received: (at 5551) by debbugs.gnu.org; 13 Feb 2010 07:33:30 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgCVO-0003ad-HB for submit@debbugs.gnu.org; Sat, 13 Feb 2010 02:33:30 -0500 Received: from pantheon-po25.its.yale.edu ([130.132.50.119]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgCVN-0003aY-3n for 5551@debbugs.gnu.org; Sat, 13 Feb 2010 02:33:29 -0500 Received: from furry (bb121-6-236-4.singnet.com.sg [121.6.236.4]) (authenticated bits=0) by pantheon-po25.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id o1D7XQ4O031774 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Sat, 13 Feb 2010 02:33:28 -0500 Received: by furry (Postfix, from userid 1000) id 1E670C05D; Sat, 13 Feb 2010 02:33:24 -0500 (EST) From: Chong Yidong To: Michael Albinus Subject: Re: bug#5551: 23.1.92; Dired shows wrongly whole directory contents References: <87pr4epomb.fsf@gmx.de> <87pr4dqw3k.fsf@stupidchicken.com> Date: Sat, 13 Feb 2010 02:33:23 -0500 In-Reply-To: (Michael Albinus's message of "Wed, 10 Feb 2010 10:46:48 +0100") Message-ID: <87y6ix4mkc.fsf@stupidchicken.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-Spam-Score: -2.6 (--) X-Debbugs-Envelope-To: 5551 Cc: Drew Adams , "5551@debbugs.gnu.org" <5551@debbugs.gnu.org> X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.6 (--) Michael Albinus writes: > Have you tried the example I gave in the bug report? There is definitely > an error, if default-directory points to "~/somewhere/else", and you > apply > > (dired '("foo" "~/")) > > You will see the relative file names listed from "~/", but if you click > on a file name, you cannot open, because default-directory is still > "~/somewhere/else". I see; this is indeed a problem, so I guess we can risk committing the patch. Please do so, thanks. From debbugs-submit-bounces@debbugs.gnu.org Sun Feb 14 04:31:44 2010 Received: (at 5551-done) by debbugs.gnu.org; 14 Feb 2010 09:31:44 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NgapM-0006Rg-47 for submit@debbugs.gnu.org; Sun, 14 Feb 2010 04:31:44 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NgapK-0006RZ-Fv for 5551-done@debbugs.gnu.org; Sun, 14 Feb 2010 04:31:42 -0500 Received: (qmail invoked by alias); 14 Feb 2010 09:31:38 -0000 Received: from p4FC0084E.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.8.78] by mail.gmx.net (mp026) with SMTP; 14 Feb 2010 10:31:38 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1/y5SVsoZryKUPFW6WM0mrySsppuWKKIHwp6C9756 9XeG6Gn0vcA3zM From: Michael Albinus To: Chong Yidong Subject: Re: bug#5551: 23.1.92; Dired shows wrongly whole directory contents References: <87pr4epomb.fsf@gmx.de> <87pr4dqw3k.fsf@stupidchicken.com> <87y6ix4mkc.fsf@stupidchicken.com> Date: Sun, 14 Feb 2010 10:31:36 +0100 In-Reply-To: <87y6ix4mkc.fsf@stupidchicken.com> (Chong Yidong's message of "Sat, 13 Feb 2010 02:33:23 -0500") Message-ID: <87eiko6u4n.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Y-GMX-Trusted: 0 X-FuHaFi: 0.73999999999999999 X-Spam-Score: -2.7 (--) X-Debbugs-Envelope-To: 5551-done Cc: 5551-done@debbugs.gnu.org X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: debbugs-submit-bounces@debbugs.gnu.org Errors-To: debbugs-submit-bounces@debbugs.gnu.org X-Spam-Score: -2.7 (--) Chong Yidong writes: > Michael Albinus writes: > >> Have you tried the example I gave in the bug report? There is definitely >> an error, if default-directory points to "~/somewhere/else", and you >> apply >> >> (dired '("foo" "~/")) >> >> You will see the relative file names listed from "~/", but if you click >> on a file name, you cannot open, because default-directory is still >> "~/somewhere/else". > > I see; this is indeed a problem, so I guess we can risk committing the > patch. Please do so, thanks. Committed. Best regards, Michael. From unknown Tue Jun 17 20:09:04 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Sun, 14 Mar 2010 11:24:03 +0000 User-Agent: Fakemail v42.6.9 # A New Hope # A long time ago, in a galaxy far, far away # something happened. # # Magically this resulted in the following # action being taken, but this fake control # message doesn't tell you why it happened # # The action: # bug archived. thanks # This fakemail brought to you by your local debbugs # administrator