From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Stephen Leake Newsgroups: gmane.emacs.devel Subject: Re: abbreviate-file-name on Windows seems incorrect Date: Tue, 09 Jan 2007 07:52:17 -0500 Message-ID: References: <874pr3eeth.fsf@catnip.gol.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1168347213 25898 80.91.229.12 (9 Jan 2007 12:53:33 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 9 Jan 2007 12:53:33 +0000 (UTC) Cc: Stephen Leake , emacs-devel@gnu.org, drew.adams@oracle.com, miles@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Jan 09 13:53:31 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1H4GTk-0002O3-SI for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 13:53:25 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4GTk-0008Mp-IQ for ged-emacs-devel@m.gmane.org; Tue, 09 Jan 2007 07:53:24 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H4GTZ-0008MQ-DV for emacs-devel@gnu.org; Tue, 09 Jan 2007 07:53:13 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H4GTX-0008LW-HU for emacs-devel@gnu.org; Tue, 09 Jan 2007 07:53:12 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H4GTX-0008LT-CS for emacs-devel@gnu.org; Tue, 09 Jan 2007 07:53:11 -0500 Original-Received: from [207.172.157.102] (helo=smtp02.lnh.mail.rcn.net) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H4GTQ-0007TI-6j; Tue, 09 Jan 2007 07:53:04 -0500 Original-Received: from mr08.lnh.mail.rcn.net ([207.172.157.28]) by smtp02.lnh.mail.rcn.net with ESMTP; 09 Jan 2007 07:52:34 -0500 X-IronPort-AV: i="4.13,163,1167627600"; d="scan'208"; a="384411074:sNHT29321028" Original-Received: from smtp01.lnh.mail.rcn.net (smtp01.lnh.mail.rcn.net [207.172.4.11]) by mr08.lnh.mail.rcn.net (MOS 3.7.5a-GA) with ESMTP id IBU28324; Tue, 9 Jan 2007 07:52:29 -0500 (EST) Original-Received: from 208-59-165-113.c3-0.slvr-ubr1.lnh-slvr.md.cable.rcn.com (HELO ACS1100007992) ([208.59.165.113]) by smtp01.lnh.mail.rcn.net with ESMTP; 09 Jan 2007 07:52:30 -0500 Original-To: Eli Zaretskii In-Reply-To: (Eli Zaretskii's message of "Mon, 08 Jan 2007 21:30:35 +0200") User-Agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (windows-nt) X-Junkmail-Status: score=10/50, host=mr08.lnh.mail.rcn.net X-Junkmail-SD-Raw: score=unknown, refid=str=0001.0A090202.45A38E47.00E0,ss=1,fgs=0, ip=207.172.4.11, so=2006-05-09 23:27:51, dmn=5.2.125/2006-10-10 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:65057 Archived-At: Eli Zaretskii writes: >> Cc: Stephen Leake , miles@gnu.org, >> drew.adams@oracle.com, emacs-devel@gnu.org >> From: Stephen Leake >> Date: Mon, 08 Jan 2007 03:44:09 -0500 >> >> Now I'm getting the expected behavior from 'expand-file-name', but not >> from 'abbreviate-file-name'. > > `abbreviate-file-name' behaves as expected, it isn't supposed to be > handed backslashes as directory separators. Try this instead: > > (abbreviate-file-name (expand-file-name "c:\\Stephe\\foo")) Right, that behaves as expected. And 'abbreviate-file-name' caches $HOME on the first call. Which I agree is the wrong thing to do. Sorry for the confusion. -- -- Stephe