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#7126: 24.0.50; `dired-goto-file' fails when `dired' is passed a cons with absolute file names Date: Tue, 28 Sep 2010 14:57:22 -0700 Message-ID: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1285711939 19037 80.91.229.12 (28 Sep 2010 22:12:19 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Tue, 28 Sep 2010 22:12:19 +0000 (UTC) To: 7126@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Sep 29 00:12:18 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 1P0iPJ-0004ep-I8 for geb-bug-gnu-emacs@m.gmane.org; Wed, 29 Sep 2010 00:12:18 +0200 Original-Received: from localhost ([127.0.0.1]:60956 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0iPI-0005rq-QK for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Sep 2010 18:12:16 -0400 Original-Received: from [140.186.70.92] (port=35910 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0iOT-0005Qv-0C for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 18:11:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0iOR-0007ew-Mz for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 18:11:24 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:52622) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0iOR-0007eq-Lf for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 18:11:23 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.69) (envelope-from ) id 1P0i9a-00043p-BG; Tue, 28 Sep 2010 17:56:02 -0400 X-Loop: help-debbugs@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: Tue, 28 Sep 2010 21:56:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 7126 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: Original-Received: via spool by submit@debbugs.gnu.org id=B.128571090915598 (code B ref -1); Tue, 28 Sep 2010 21:56:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 28 Sep 2010 21:55:09 +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 1P0i8i-00043X-Ad for submit@debbugs.gnu.org; Tue, 28 Sep 2010 17:55:08 -0400 Original-Received: from eggs.gnu.org ([140.186.70.92]) by debbugs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0i8h-00043C-06 for submit@debbugs.gnu.org; Tue, 28 Sep 2010 17:55:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0iBR-0005tq-Cj for submit@debbugs.gnu.org; Tue, 28 Sep 2010 17:57:58 -0400 Original-Received: from lists.gnu.org ([199.232.76.165]:56300) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0iBR-0005tm-Ai for submit@debbugs.gnu.org; Tue, 28 Sep 2010 17:57:57 -0400 Original-Received: from [140.186.70.92] (port=45243 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P0iBQ-0000u5-4c for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 17:57:57 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1P0iBP-0005tL-0E for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 17:57:56 -0400 Original-Received: from rcsinet10.oracle.com ([148.87.113.121]:49909) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1P0iBO-0005tD-Qk for bug-gnu-emacs@gnu.org; Tue, 28 Sep 2010 17:57:54 -0400 Original-Received: from rcsinet15.oracle.com (rcsinet15.oracle.com [148.87.113.117]) by rcsinet10.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o8SLvp9X008391 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 28 Sep 2010 21:57:52 GMT Original-Received: from acsmt355.oracle.com (acsmt355.oracle.com [141.146.40.155]) by rcsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o8SIJUCI000841 for ; Tue, 28 Sep 2010 21:57:50 GMT Original-Received: from abhmt021.oracle.com by acsmt353.oracle.com with ESMTP id 638580651285711042; Tue, 28 Sep 2010 14:57:22 -0700 Original-Received: from dradamslap1 (/10.159.216.184) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Tue, 28 Sep 2010 14:57:22 -0700 X-Mailer: Microsoft Office Outlook 11 Thread-Index: ActfWCC4Vdwq3bVZSgq9KEYXfRPSBg== X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5994 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.11 Precedence: list Resent-Date: Tue, 28 Sep 2010 17:56:02 -0400 X-detected-operating-system: by eggs.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:40522 Archived-At: emacs -Q M-: (dired '("AAAAA" "c:/foo.c" "c:/bar.c")) This opens a Dired buffer named `AAAAA' with the same `default-directory' as before the `M-:'. The Dired buffer has two explicit entries, the files listed in the cons arg. These are absolute file names. This is a normal, advertised behavior of `dired': you can pass it a cons arg to have Dired list only explicit files. And the file names can be either relative or absolute. It works for remote files as well as local ones. Generally, it works quite well. There have been some oversights in the code in the past, but most have now been fixed. Now try `j c:/foo.c'. (`j' is `dired-goto-file'.) It fails. The reason it fails is that `dired-goto-file' looks only for the relative file name (e.g. `foo.c') with a space prepended. This is so even when you give it an absolute file name, such as `c:/foo.c'. This is important not just for interactive use but because `dired-goto-file' is a fundamental function. It is used all over the place in the Dired code. This bug therefore breaks lots of things. It makes it impossible for 3rd-party developers to really take advantage of the Dired feature of listing arbitrary files and directories. Dired functions should make no assumptions about the listed file and directory names. In particular, it should not assume that the files and dirs are in particular parent directories or that they are relative names. If a file name is absolute, then it must be respected. If it is relative, then it needs to be interpreted relative to the (sub)directory heading that precedes it (as usual). In GNU Emacs 24.0.50.1 (i386-mingw-nt5.1.2600) of 2010-09-20 on 3249CTO Windowing system distributor `Microsoft Corp.', version 5.1.2600 configured using `configure --with-gcc (4.4) --no-opt --cflags -Ic:/imagesupport/include'