From: Daniel Colascione <dancol@dancol.org>
To: Eli Zaretskii <eliz@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: substitute-in-file-name is not distributive
Date: Wed, 10 Oct 2012 09:48:21 -0700 [thread overview]
Message-ID: <5075A6D5.1070903@dancol.org> (raw)
In-Reply-To: <83k3uyz6mi.fsf@gnu.org>
[-- Attachment #1: Type: text/plain, Size: 1065 bytes --]
On 10/10/12 8:31 AM, Eli Zaretskii wrote:
>> Date: Tue, 09 Oct 2012 22:36:21 -0700
>> From: Daniel Colascione <dancol@dancol.org>
>>
>> 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.
>
> 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?
[-- Attachment #2: OpenPGP digital signature --]
[-- Type: application/pgp-signature, Size: 235 bytes --]
next prev parent reply other threads:[~2012-10-10 16:48 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-10-10 5:36 substitute-in-file-name is not distributive Daniel Colascione
2012-10-10 6:39 ` Andreas Schwab
2012-10-10 15:31 ` Eli Zaretskii
2012-10-10 16:48 ` Daniel Colascione [this message]
2012-10-10 17:18 ` Eli Zaretskii
2012-10-10 17:40 ` Daniel Colascione
2012-10-11 3:25 ` Stephen Leake
2012-10-25 3:20 ` Stefan Monnier
2012-10-25 3:28 ` Daniel Colascione
2012-10-27 16:08 ` Stefan Monnier
2012-10-28 19:09 ` Stefan Monnier
2012-10-30 4:10 ` Daniel Colascione
2012-10-30 13:15 ` Stefan Monnier
2012-10-30 15:01 ` Daniel Colascione
2012-10-30 18:58 ` Stefan Monnier
2012-10-30 20:12 ` Daniel Colascione
2012-10-30 21:24 ` Stefan Monnier
2012-10-30 21:34 ` Daniel Colascione
2012-10-31 3:41 ` Stefan Monnier
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=5075A6D5.1070903@dancol.org \
--to=dancol@dancol.org \
--cc=eliz@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.