From debbugs-submit-bounces@debbugs.gnu.org Mon Jan 25 19:41:00 2010 Received: (at submit) by debbugs.gnu.org; 26 Jan 2010 00:41:00 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZZUK-00022M-Dn for submit@debbugs.gnu.org; Mon, 25 Jan 2010 19:41:00 -0500 Received: from fencepost.gnu.org ([140.186.70.10]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZZUI-00022H-Oa for submit@debbugs.gnu.org; Mon, 25 Jan 2010 19:40:59 -0500 Received: from mail.gnu.org ([199.232.76.166]:55356 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZZUF-0005SB-3N for emacs-pretest-bug@gnu.org; Mon, 25 Jan 2010 19:40:55 -0500 Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1NZZUD-00037Y-Ia for emacs-pretest-bug@gnu.org; Mon, 25 Jan 2010 19:40:54 -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=ham version=3.1.0 Received: from rcsinet12.oracle.com ([148.87.113.124]:23794) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1NZZUD-00037O-7H for emacs-pretest-bug@gnu.org; Mon, 25 Jan 2010 19:40:53 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o0Q0eo4N020648 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 26 Jan 2010 00:40:51 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o0Q0YZsD030328 for ; Tue, 26 Jan 2010 00:40:49 GMT Received: from abhmt004.oracle.com by acsmt354.oracle.com with ESMTP id 1474120391264466420; Mon, 25 Jan 2010 16:40:20 -0800 Received: from dradamslap1 (/141.144.160.254) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Jan 2010 16:40:20 -0800 From: "Drew Adams" To: Subject: 23.1.91; Cannot use dired with cons DIRNAME arg if include remote files Date: Mon, 25 Jan 2010 16:40:15 -0800 Message-ID: <72D5669EF250488BB23F1D1E23EB9C7F@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 Thread-Index: AcqeICC9Mnq/67EjTd6/PjEJakqzJA== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090206.4B5E3A12.0108:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 3) X-Spam-Score: -6.4 (------) 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: -6.4 (------) emacs -Q I load these two files: http://www.emacswiki.org/emacs/cygwin-mount.el http://www.emacswiki.org/emacs/setup-cygwin.el I use ftp as `tramp-default-method' (I gave up trying to use Tramp with ssh on Windows). But probably none of that is important. What follows is what matters. M-: (dired '("foo" A B)) where A is an (absolute) remote file name and B is an (absolute) local file name. For example, A could be "/zizi.bar.toto.com:/some/path/titi.el", and B could be "c:/another/path/tata.el". The Dired buffer that results shows file B normally: it is correctly listed using its absolute file name. The buffer is correctly named "foo". The listing shows file A incorrectly, however. It shows A as a relative file name, instead of showing it as an absolute, remote file name. IOW, the remote directory information is lost. And hitting RET on A's line in Dired raises this error: "File no longer exists; type `g' to update dired buffer". That message is inappropriate, obviously. And `g' does not help. This is really too bad. It is _very_ convenient to use Dired with an explicit list of files, e.g. files from different directories. It would be especially convenient to be able to mix local and remote files this way. And according to the Dired doc, this should work. It almost does. In fact, the file line for the remote file is otherwise correct - e.g. the date/time, permissions, etc. The only problem seems to be that the directory itself is missing: the file name is displayed as a relative name. If it were displayed as absolute, I'm guessing it would work 100%. In GNU Emacs 23.1.91.1 (i386-mingw-nt5.1.2600) of 2010-01-02 on PRETEST Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (3.4)' From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 26 00:14:53 2010 Received: (at 5478) by debbugs.gnu.org; 26 Jan 2010 05:14:54 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZdlN-00009j-7z for submit@debbugs.gnu.org; Tue, 26 Jan 2010 00:14:53 -0500 Received: from rcsinet12.oracle.com ([148.87.113.124]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZdlL-00009d-Us for 5478@debbugs.gnu.org; Tue, 26 Jan 2010 00:14:52 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet12.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o0Q5ElLc016057 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <5478@debbugs.gnu.org>; Tue, 26 Jan 2010 05:14:48 GMT Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o0Q5EPe6000922 for <5478@debbugs.gnu.org>; Tue, 26 Jan 2010 05:14:26 GMT Received: from abhmt004.oracle.com by acsmt353.oracle.com with ESMTP id 1476050481264482859; Mon, 25 Jan 2010 21:14:19 -0800 Received: from dradamslap1 (/141.144.160.254) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Mon, 25 Jan 2010 21:14:19 -0800 From: "Drew Adams" To: <5478@debbugs.gnu.org> References: <72D5669EF250488BB23F1D1E23EB9C7F@us.oracle.com> Subject: RE: bug#5478: 23.1.91; Cannot use dired with cons DIRNAME arg if include remote files Date: Mon, 25 Jan 2010 21:14:20 -0800 Message-ID: <3F08B52228FF450E9346548AB6E30C7B@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <72D5669EF250488BB23F1D1E23EB9C7F@us.oracle.com> Thread-Index: AcqeICC9Mnq/67EjTd6/PjEJakqzJAAIsJDw X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt355.oracle.com [141.146.40.155] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090207.4B5E7A46.01E0:SCFMA4539814,ss=1,fgs=0 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 5478 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 (------) Here is some info about the cause of this bug. It has to do with the very different way that local and remote file and directory names are handled by `insert-directory'. Remote names are not handled correctly. Local file and dir names are inserted into Dired verbatim: if they are absolute names, then they remain such. Remote names are instead relativized (they should not be). And in the case of a remote directory name, instead of the directory name itself being inserted, its constituent file names are inserted. (So there are in fact two bugs, or two aspects to this bug.) Here are some details: `dired-internal-noselect' calls `dired-readin', which calls `insert-directory' for each of the absolute file names in `dired-directory', which is the cons from the DIR-OR-LIST arg to `dired-internal-noselect'. The problem for a remote file name or a remote directory name as one of the elements of the cons comes I think from this code in the definition of `insert-directory' in ls-lisp.el: (let ((handler (find-file-name-handler (expand-file-name file) 'insert-directory)) (orig-file file) wildcard-regexp) (if handler (funcall handler 'insert-directory file switches wildcard full-directory-p) and this code in ange-ftp.el: (put 'insert-directory 'ange-ftp 'ange-ftp-insert-directory) When a local directory name or an (absolute) local file name is an element of the cons DIRNAME, `insert-directory' just inserts it verbatim as a single name in the Dired buffer. That is the correct behavior for the cons DIRNAME case: each file or dir in the cons should just be inserted in the Dired buffer. This is done by calling `ls-lisp-insert-directory'. But when a remote directory name or a remote (absolute) file name is an element of the cons DIRNAME, the handler `ange-ftp-insert-directory' is called. For a remote directory name element, it inserts the relative file names of the files in that remote dir, instead of just inserting the remote dir name itself. For a remote file-name element, it inserts the relative name instead of the absolute file name. IOW, for local files and dirs, `insert-directory' just inserts the names. For remote files and dirs, it inserts relative file names. And in the case of a remote dir, it inserts the (relative) names of the files in the dir, instead of the dir name itself. From debbugs-submit-bounces@debbugs.gnu.org Tue Jan 26 19:47:00 2010 Received: (at 5478) by debbugs.gnu.org; 27 Jan 2010 00:47:01 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZw3g-0000BI-C9 for submit@debbugs.gnu.org; Tue, 26 Jan 2010 19:47:00 -0500 Received: from rcsinet11.oracle.com ([148.87.113.123]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NZw3T-0000BB-Le for 5478@debbugs.gnu.org; Tue, 26 Jan 2010 19:47:00 -0500 Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o0R0kfJX021728 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for <5478@debbugs.gnu.org>; Wed, 27 Jan 2010 00:46:43 GMT Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o0R0kbk7016353 for <5478@debbugs.gnu.org>; Wed, 27 Jan 2010 00:46:37 GMT Received: from abhmt015.oracle.com by acsmt356.oracle.com with ESMTP id 1480869881264553104; Tue, 26 Jan 2010 16:45:04 -0800 Received: from dradamslap1 (/24.5.185.59) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 26 Jan 2010 16:45:03 -0800 From: "Drew Adams" To: <5478@debbugs.gnu.org> References: <72D5669EF250488BB23F1D1E23EB9C7F@us.oracle.com> <3F08B52228FF450E9346548AB6E30C7B@us.oracle.com> Subject: RE: bug#5478: 23.1.91; Cannot use dired with cons DIRNAME arg if include remote files Date: Tue, 26 Jan 2010 16:45:02 -0800 Message-ID: <2263BCC4E9A74A1B8226A1C5CF74BE2F@us.oracle.com> MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <3F08B52228FF450E9346548AB6E30C7B@us.oracle.com> Thread-Index: AcqeICC9Mnq/67EjTd6/PjEJakqzJAAIsJDwACmw1PA= X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090209.4B5F8CF1.00C8:SCFMA4539814,ss=1,fgs=0 X-Spam-Score: -6.4 (------) X-Debbugs-Envelope-To: 5478 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 (------) > The problem for a remote file name or a remote directory name > as one of the elements of the cons comes I think from this code > in the definition of `insert-directory' in ls-lisp.el: > > (let ((handler (find-file-name-handler (expand-file-name file) > 'insert-directory)) ... > (if handler > (funcall handler 'insert-directory file switches > wildcard full-directory-p) The same code is in the definition of `insert-directory' that is found in files.el, so this bug is probably not only for users of ls-lisp.el (e.g. Windows users). From debbugs-submit-bounces@debbugs.gnu.org Thu Jan 28 16:19:50 2010 Received: (at 5478) by debbugs.gnu.org; 28 Jan 2010 21:19:50 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NabmH-0001Oy-VO for submit@debbugs.gnu.org; Thu, 28 Jan 2010 16:19:50 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NabmE-0001Oj-74 for 5478@debbugs.gnu.org; Thu, 28 Jan 2010 16:19:48 -0500 Received: (qmail invoked by alias); 28 Jan 2010 21:19:40 -0000 Received: from p4FC00169.dip0.t-ipconnect.de (EHLO detlef.local) [79.192.1.105] by mail.gmx.net (mp051) with SMTP; 28 Jan 2010 22:19:40 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX1+dMkRhOw+dovHeqgqW0HdGNat6iqCg2dvYWjU7qe M6o7FZaFdd6u/Q From: Michael Albinus To: "Drew Adams" Subject: Re: bug#5478: 23.1.91; Cannot use dired with cons DIRNAME arg if include remote files References: <72D5669EF250488BB23F1D1E23EB9C7F@us.oracle.com> <3F08B52228FF450E9346548AB6E30C7B@us.oracle.com> <2263BCC4E9A74A1B8226A1C5CF74BE2F@us.oracle.com> Date: Thu, 28 Jan 2010 22:19:37 +0100 In-Reply-To: <2263BCC4E9A74A1B8226A1C5CF74BE2F@us.oracle.com> (Drew Adams's message of "Tue, 26 Jan 2010 16:45:02 -0800") Message-ID: <873a1qrkpi.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.91 (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.6 (--) X-Debbugs-Envelope-To: 5478 Cc: 5478@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 (--) "Drew Adams" writes: > The same code is in the definition of `insert-directory' that is found in > files.el, so this bug is probably not only for users of ls-lisp.el (e.g. Windows > users). I could reproduce it with gnu/linux. Fixed in ange-ftp.el and tramp.el. Some cosmetics in dired listing layout might be left, I'm not familiar with this. I haven't tested it for W32. Best regards, Michael. From debbugs-submit-bounces@debbugs.gnu.org Tue Feb 09 11:11:28 2010 Received: (at 5478-done) by debbugs.gnu.org; 9 Feb 2010 16:11:28 +0000 Received: from localhost ([127.0.0.1] helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NesgS-0007fM-35 for submit@debbugs.gnu.org; Tue, 09 Feb 2010 11:11:28 -0500 Received: from mail.gmx.net ([213.165.64.20]) by debbugs.gnu.org with smtp (Exim 4.69) (envelope-from ) id 1NesgQ-0007fE-Hi for 5478-done@debbugs.gnu.org; Tue, 09 Feb 2010 11:11:27 -0500 Received: (qmail invoked by alias); 09 Feb 2010 16:11:19 -0000 Received: from p4FC00CAD.dip0.t-ipconnect.de (EHLO LKG29808F.local) [79.192.12.173] by mail.gmx.net (mp041) with SMTP; 09 Feb 2010 17:11:19 +0100 X-Authenticated: #3708877 X-Provags-ID: V01U2FsdGVkX18Nc7okcsQN1xpoV/wtmXfKr4ZJn6EN90vSJZ2AzH 88YDSXC2AjHmIt From: Michael Albinus To: 5478-done@debbugs.gnu.org Subject: Re: bug#5478: 23.1.91; Cannot use dired with cons DIRNAME arg if include remote files In-Reply-To: <873a1qrkpi.fsf@gmx.de> (Michael Albinus's message of "Thu, 28 Jan 2010 22:19:37 +0100") References: <72D5669EF250488BB23F1D1E23EB9C7F@us.oracle.com> <3F08B52228FF450E9346548AB6E30C7B@us.oracle.com> <2263BCC4E9A74A1B8226A1C5CF74BE2F@us.oracle.com> <873a1qrkpi.fsf@gmx.de> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.92 (gnu/linux) Date: Tue, 09 Feb 2010 17:11:17 +0100 Message-ID: <87mxzil78a.fsf@gmx.de> 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: 5478-done Cc: Drew Adams 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 (--) Michael Albinus writes: > I could reproduce it with gnu/linux. Fixed in ange-ftp.el and > tramp.el. Some cosmetics in dired listing layout might be left, I'm not > familiar with this. > > I haven't tested it for W32. Remote files are handled correct now, also under W32 (according to the OP). The bug is closed therefore. During the tests, two other bugs have been detected, bug#5516 and bug#5551. They are not related to remote files in particular, therefore they shall be treated independently. Best regards, Michael. From unknown Sat Aug 16 00:29:48 2025 Received: (at fakecontrol) by fakecontrolmessage; To: internal_control@debbugs.gnu.org From: Debbugs Internal Request Subject: Internal Control Message-Id: bug archived. Date: Wed, 10 Mar 2010 12: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