From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "David J. Biesack" Newsgroups: gmane.emacs.bugs Subject: bug#4902: 23.1; directory-abbrev-alist is not handled early enough Date: Tue, 10 Nov 2009 14:52:11 -0500 Message-ID: References: Reply-To: "David J. Biesack" , 4902@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org X-Trace: ger.gmane.org 1257885278 19934 80.91.229.12 (10 Nov 2009 20:34:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 10 Nov 2009 20:34:38 +0000 (UTC) Cc: 4902@emacsbugs.donarmstrong.com To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Nov 10 21:34:31 2009 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.50) id 1N7xQ5-0002Wz-4C for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Nov 2009 21:34:30 +0100 Original-Received: from localhost ([127.0.0.1]:55872 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7xQ4-00088i-Cz for geb-bug-gnu-emacs@m.gmane.org; Tue, 10 Nov 2009 15:34:28 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N7wzu-0001lj-5Z for bug-gnu-emacs@gnu.org; Tue, 10 Nov 2009 15:07:26 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N7wzp-0001kJ-IU for bug-gnu-emacs@gnu.org; Tue, 10 Nov 2009 15:07:25 -0500 Original-Received: from [199.232.76.173] (port=40659 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N7wzp-0001k9-36 for bug-gnu-emacs@gnu.org; Tue, 10 Nov 2009 15:07:21 -0500 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:44558) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N7wzo-0007PY-Fy for bug-gnu-emacs@gnu.org; Tue, 10 Nov 2009 15:07:20 -0500 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAAK7IHV025244; Tue, 10 Nov 2009 12:07:18 -0800 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.14.3/8.14.3/Submit) id nAAK04lc023411; Tue, 10 Nov 2009 12:00:04 -0800 Resent-Date: Tue, 10 Nov 2009 12:00:04 -0800 X-Loop: owner@emacsbugs.donarmstrong.com Resent-From: "David J. Biesack" Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs 2Resent-Date: Tue, 10 Nov 2009 20:00:04 +0000 Resent-Message-ID: Resent-Sender: owner@emacsbugs.donarmstrong.com X-Emacs-PR-Message: followup 4902 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 4902-submit@emacsbugs.donarmstrong.com id=B4902.125788274622499 (code B ref 4902); Tue, 10 Nov 2009 20:00:04 +0000 Original-Received: (at 4902) by emacsbugs.donarmstrong.com; 10 Nov 2009 19:52:26 +0000 X-Spam-Bayes: score:0.5 Bayes not run. spammytokens:Tokens not available. hammytokens:Tokens not available. Original-Received: from mercav15.na.sas.com (mercav15.na.sas.com [149.173.6.149]) by rzlab.ucr.edu (8.14.3/8.14.3/Debian-5) with ESMTP id nAAJqObn022492 for <4902@emacsbugs.donarmstrong.com>; Tue, 10 Nov 2009 11:52:26 -0800 X-TM-IMSS-Message-ID: <20ad283a00003f5b@mercav15.na.sas.com> Original-Received: from d16922.us.sas.com ([10.40.12.239]) by mercav15.na.sas.com ([10.19.9.223]) with ESMTP (TREND IMSS SMTP Service 7.0) id 20ad283a00003f5b ; Tue, 10 Nov 2009 14:52:13 -0500 In-reply-to: (message from Stefan Monnier on Tue, 10 Nov 2009 14:35:54 -0500) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) Resent-Date: Tue, 10 Nov 2009 15:07:25 -0500 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list 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:32526 Archived-At: > From: Stefan Monnier > CC: <4902@emacsbugs.donarmstrong.com> > Date: Tue, 10 Nov 2009 14:35:54 -0500 > > > (setq directory-abbrev-alist '(("^/mount/" . "//uncpath/mount/"))) > > > Even after setting this value, it is not honored on Windows. > > Lower level functions appear to ignore directory-abbrev-alist, > > so find-file and find-file-noselect etc. end up with "true" filenames that > > contain drive letters: > > > (file-truename "/mount/somefile.x") > > => "c:/mount/somefile.x" > > file-truename does not use directory-abbrev-alist. > Only abbreviate-file-name does. Perhaps that is why it is a bug :-) For example, if the path /mount/somefile.x shows up in RMAIL or in a source file, I want to do find-file-at-point on that path. When I do, Emacs tries to open c:/mount/somefile.x instead. In other words, I does not matter what low level function uses directory-abbrev-alist and which don't, but the net effect is find-file-at-point and other functions (filemenu http://www.eskimo.com/~seldon/filemenu.el) which use find-file or find-file-noselect do *not* use directory-abbrev-alist when the doc string implies (to me) that they should. My hack workaround is to add a new hook to find-file-not-found-hooks which should not be necessary. -- David J. Biesack, SAS SAS Campus Dr. Cary, NC 27513 www.sas.com (919) 531-7771