From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: abbreviate-file-name on Windows seems incorrect Date: Sat, 06 Jan 2007 16:18:16 +0200 Message-ID: References: <459F89F5.3080504@gmail.com> Reply-To: Eli Zaretskii NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1168093128 17910 80.91.229.12 (6 Jan 2007 14:18:48 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 6 Jan 2007 14:18:48 +0000 (UTC) Cc: drew.adams@oracle.com, emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sat Jan 06 15:18:44 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 1H3CNf-0007QQ-DT for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2007 15:18:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3CNe-0003zp-Qy for ged-emacs-devel@m.gmane.org; Sat, 06 Jan 2007 09:18:42 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1H3CNP-0003xc-Gz for emacs-devel@gnu.org; Sat, 06 Jan 2007 09:18:27 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1H3CNN-0003ui-Vi for emacs-devel@gnu.org; Sat, 06 Jan 2007 09:18:27 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1H3CNN-0003ua-SY for emacs-devel@gnu.org; Sat, 06 Jan 2007 09:18:25 -0500 Original-Received: from [192.114.186.66] (helo=romy.inter.net.il) by monty-python.gnu.org with esmtp (Exim 4.52) id 1H3CNN-0005a6-Ez for emacs-devel@gnu.org; Sat, 06 Jan 2007 09:18:25 -0500 Original-Received: from HOME-C4E4A596F7 (IGLD-83-130-195-26.inter.net.il [83.130.195.26]) by romy.inter.net.il (MOS 3.7.3-GA) with ESMTP id GSW17013 (AUTH halo1); Sat, 6 Jan 2007 16:18:15 +0200 (IST) Original-To: "Lennart Borgman (gmail)" In-reply-to: <459F89F5.3080504@gmail.com> (lennart.borgman@gmail.com) 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:64880 Archived-At: > Date: Sat, 06 Jan 2007 12:37:25 +0100 > From: "Lennart Borgman (gmail)" > Cc: Emacs-Devel > > If leave abbreviated-home-dir as "^c:/\\(/\\|\\'\\)" and you instead > just comment out this part in abbreviate-file-name, does it works as you > expect then? : > > ;; MS-DOS root directories can come with a drive letter; > ;; Novell Netware allows drive letters beyond `Z:'. > (not (and (or (eq system-type 'ms-dos) > (eq system-type 'cygwin) > (eq system-type 'windows-nt)) > (save-match-data > (string-match "^[a-zA-`]:/$" filename))))) Why remove it? It does on Windows what the preceding fragment (the one you didn't show) does on Unix.