From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chris Moore Newsgroups: gmane.emacs.devel Subject: Re: abbreviate-file-name on Windows seems incorrect Date: Mon, 08 Jan 2007 14:07:17 +0100 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 1168261964 7030 80.91.229.12 (8 Jan 2007 13:12:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 8 Jan 2007 13:12:44 +0000 (UTC) Cc: Eli Zaretskii , miles@gnu.org, drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jan 08 14:12:42 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 1H3uIr-0007wZ-OH for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 14:12:42 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3uIr-0008Hh-5F for ged-emacs-devel@m.gmane.org; Mon, 08 Jan 2007 08:12:41 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3uDq-0004Zy-2T for emacs-devel@gnu.org; Mon, 08 Jan 2007 08:07:30 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3uDm-0004Wm-Cl for emacs-devel@gnu.org; Mon, 08 Jan 2007 08:07:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3uDl-0004Wh-Ce for emacs-devel@gnu.org; Mon, 08 Jan 2007 08:07:25 -0500 Original-Received: from [66.249.92.175] (helo=ug-out-1314.google.com) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3uDk-0000Lu-F3 for emacs-devel@gnu.org; Mon, 08 Jan 2007 08:07:24 -0500 Original-Received: by ug-out-1314.google.com with SMTP id j3so6955818ugf for ; Mon, 08 Jan 2007 05:07:23 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:to:cc:references:from:date:in-reply-to:message-id:user-agent:mime-version:content-type:x-sa-exim-connect-ip:x-sa-exim-mail-from:x-spam-checker-version:x-spam-level:x-spam-status:subject:x-sa-exim-version:x-sa-exim-scanned:sender; b=gXP6hxhFh0G/zfuXuvLE2QZjIxBBl7Mp6zEs8BYW5wv7FaFXPmd5pQlFq3kFCaF/ROtRNZKtkQKxnSoN2/JAZuAhrOEI5jwQ3sfuBcCK+IepNbsdMK4yBHAamkcVRz4eLSpOSQdBxgT0E8GMA7uJzF3Ja+ov3qkv/hE4JQfcKhA= Original-Received: by 10.67.29.12 with SMTP id g12mr15644374ugj.1168261643346; Mon, 08 Jan 2007 05:07:23 -0800 (PST) Original-Received: from chrislap.local ( [89.176.28.156]) by mx.google.com with ESMTP id p32sm32964818ugc.2007.01.08.05.07.21; Mon, 08 Jan 2007 05:07:22 -0800 (PST) Original-Received: from localhost ([127.0.0.1] helo=chrislap.local) by chrislap.local with esmtp (Exim 4.63) (envelope-from ) id 1H3uDe-0000yy-0g; Mon, 08 Jan 2007 14:07:20 +0100 Original-To: Stephen Leake In-Reply-To: (Stephen Leake's message of "Mon\, 08 Jan 2007 03\:44\:09 -0500") User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.92 (gnu/linux) X-SA-Exim-Connect-IP: 127.0.0.1 X-SA-Exim-Mail-From: dooglus@gmail.com X-SA-Exim-Version: 4.2.1 (built Sun, 03 Dec 2006 00:39:09 +0000) X-SA-Exim-Scanned: Yes (on chrislap.local) 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:64968 Archived-At: Stephen Leake writes: > (expand-file-name "~/foo") > "c:/Projects/foo" > > (abbreviate-file-name "c:\\Projects\\foo") > "c:\\Projects\\foo" abbreviate-file-name is using string-match to see check whether "c:\\Projects\\foo" matches the regexp "^c:/Projects\\(/\\|\\`\\)". It doesn't, so no abbreviation happens. It's the old MS-DOG confusion between \ and / again.