From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Daniel Colascione Newsgroups: gmane.emacs.devel Subject: Re: substitute-in-file-name is not distributive Date: Tue, 30 Oct 2012 08:01:44 -0700 Message-ID: <508FEBD8.8090505@dancol.org> References: <50750955.4020802@dancol.org> <5088B1F4.90302@dancol.org> <508F5319.4090604@dancol.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig8338D8EE3C56EBB6241A6919" X-Trace: ger.gmane.org 1351609327 1331 80.91.229.3 (30 Oct 2012 15:02:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 15:02:07 +0000 (UTC) Cc: Emacs development discussions To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Oct 30 16:02:16 2012 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1TTDKZ-0008Q5-4O for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2012 16:02:15 +0100 Original-Received: from localhost ([::1]:40687 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTDKQ-0007Al-Rl for ged-emacs-devel@m.gmane.org; Tue, 30 Oct 2012 11:02:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:42112) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTDKJ-00079k-7y for emacs-devel@gnu.org; Tue, 30 Oct 2012 11:02:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTDKD-0007rE-FD for emacs-devel@gnu.org; Tue, 30 Oct 2012 11:01:59 -0400 Original-Received: from dancol.org ([96.126.100.184]:44123) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTDKD-0007qs-8X for emacs-devel@gnu.org; Tue, 30 Oct 2012 11:01:53 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[0.0.0.0]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TTDKA-0006Jw-W6; Tue, 30 Oct 2012 08:01:51 -0700 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:16.0) Gecko/20121010 Thunderbird/16.0.1 In-Reply-To: X-Enigmail-Version: 1.4.5 X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 96.126.100.184 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:154588 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig8338D8EE3C56EBB6241A6919 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 10/30/2012 6:15 AM, Stefan Monnier wrote: > Hmm... that's odd. Can you give me some details: > - tell me exactly which text you typed in the minibuffer. I typed "c:\bin\" in the minibuffer and hit tab. After hitting tab, the minibuffer contained "c:/usr/bin", with point at the end. > - also tell me how the rfn-eshadow highlights the file name at each ste= p. Now that you mention it, I do see that the leading "c:" in the minibuffer= ishighlighted. That explains why we're substituting "c:/usr/bin" and not = "/usr/bin". > Right. BTW I'm not convinced this is the right pattern to use for your= > file-name-handler. I think catching "\\[a-zA-Z]:" or something along > these lines might be a better choice. Not all paths I want to catch are absolute, so looking for a drive letter= won't catch everything. Even "absolute" paths can be drive-letter-relative and = begin with a simple backslash. Looking for a backslash is convenient because no= legitimate Cygwin path contains one. > BTW, does Cygwin allow backslashes in file-names or does it interpret i= t > as a separator, like Windows does? Cygwin interprets backslashes as separators. --------------enig8338D8EE3C56EBB6241A6919 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.12 (Cygwin) Comment: Using GnuPG with Mozilla - http://www.enigmail.net/ iEYEARECAAYFAlCP690ACgkQ17c2LVA10Vs9HwCfZ3ABjaxJ5jEZsY87w5OcUSdJ +A0AoM+E1dd+XpM/0q/ir8tYyFx7Y0u3 =nPtn -----END PGP SIGNATURE----- --------------enig8338D8EE3C56EBB6241A6919--