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: Wed, 10 Oct 2012 09:48:21 -0700 Message-ID: <5075A6D5.1070903@dancol.org> References: <50750955.4020802@dancol.org> <83k3uyz6mi.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig256F914873BD60036B133CF8" X-Trace: ger.gmane.org 1349887739 28682 80.91.229.3 (10 Oct 2012 16:48:59 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 10 Oct 2012 16:48:59 +0000 (UTC) Cc: emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Oct 10 18:49:05 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 1TLzSz-0003Wt-6R for ged-emacs-devel@m.gmane.org; Wed, 10 Oct 2012 18:49:05 +0200 Original-Received: from localhost ([::1]:43847 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLzSs-00086H-Uw for ged-emacs-devel@m.gmane.org; Wed, 10 Oct 2012 12:48:58 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:54640) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLzSm-00083m-QO for emacs-devel@gnu.org; Wed, 10 Oct 2012 12:48:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TLzSd-0007hp-A7 for emacs-devel@gnu.org; Wed, 10 Oct 2012 12:48:52 -0400 Original-Received: from dancol.org ([96.126.100.184]:34460) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TLzSW-0007gR-Hx; Wed, 10 Oct 2012 12:48:36 -0400 Original-Received: from c-76-22-66-162.hsd1.wa.comcast.net ([76.22.66.162] helo=[192.168.1.2]) by dancol.org with esmtpsa (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.72) (envelope-from ) id 1TLzSV-0004nU-Ds; Wed, 10 Oct 2012 09:48:35 -0700 User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:15.0) Gecko/20120907 Thunderbird/15.0.1 In-Reply-To: <83k3uyz6mi.fsf@gnu.org> X-Enigmail-Version: 1.4.4 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:154272 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig256F914873BD60036B133CF8 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable On 10/10/12 8:31 AM, Eli Zaretskii wrote: >> Date: Tue, 09 Oct 2012 22:36:21 -0700 >> From: Daniel Colascione >> >> I wrote a bit of code to handle Windows paths in being given to >> read-file-name in a Cygwin Emacs --- it's just a simple >> file-name-handler-alist entry that overrides substitute-in-file-name >> for Windows paths to yield the corresponding Cygwin path. >=20 > I'm not sure I understand the use case. Are you talking about a user > who wants to feed a Cygwin Emacs with a native Windows style file > name? Why would she want to do that? Copy and paste from the clipboard comes to mind. Cygwin itself deals adequately with being given Windows paths --- it's Emacs that could handle them more elegantly. > I could understand a different use case: when a native Windows program > invoked by a Cygwin Emacs returns Windows style file names. But for > that, read-file-name is not the place to add support for this. That's why I made it a substitute-in-file-name hander. Where would you put the code? --------------enig256F914873BD60036B133CF8 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 (Darwin) Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlB1ptUACgkQ17c2LVA10VtJvwCgzvzpel7D0/60jkmoGwDcCp78 auwAoNIO48l3cSx3yEiY4uQoic0gql9l =7YID -----END PGP SIGNATURE----- --------------enig256F914873BD60036B133CF8--