From: Ken Brown <kbrown@cornell.edu>
To: David Robinow <drobinow@gmail.com>
Cc: Emacs <emacs-devel@gnu.org>, Jason Rumney <jasonr@gnu.org>
Subject: Re: browse-url/w32-shell-execute problems on cygwin
Date: Thu, 18 Jun 2009 08:46:48 -0400 [thread overview]
Message-ID: <4A3A3738.2050307@cornell.edu> (raw)
In-Reply-To: <4eb0089f0906171523s4fb68777v6c6eae0f4b8d2a1e@mail.gmail.com>
On 6/17/2009 6:23 PM, David Robinow wrote:
> On Wed, Jun 17, 2009 at 12:06 PM, Jason Rumney<jasonr@gnu.org> wrote:
>> Ken Brown wrote:
> ...
>>> (browse-url-file-url "/home/kbrown/html/index.html")
>>>
>>> yields "file:/home/kbrown/html/index.html", but (on my system) it would
>>> need to be "file://d:/cygwin-1.7/home/kbrown/html/index.html" for the
>>> windows browser to be able to handle it.
>> That is a general problem with cygwin interacting with non-cygwin programs.
>> Cygwin invents its own virtual filesystem that is not understood outside of
>> cygwin. See the problems the native build of Emacs faces with Cygwin make. I
>> don't see how bypassing browse-url fixes this for you, as the path will
>> still be one that Windows does not recognize.
>
> This is a somewhat different problem since in this case Emacs is a
> cygwin program.
> cygpath -m /home/kbrown/html/index.html
> will return a suitable windows name
> (c:/cygwin17/kbrown/html/index.html on my system)
>
> It should be relatively simple to incorporate that transformation
> directly into a cygwin-specific function. I did something similar for
> cygwin make some years ago to get it to build windows emacs.
> I'll see if I can find the code. It's been a while.
Thanks for the offer, David, but don't go to any trouble. I know that I
could use cygpath to fix browse-url-file-url, but that would require
special-casing cygwin in browse-url-file-url. The simpler solution
using cygstart that I proposed instead does the special-casing in
browse-url-of-file. But I don't know if the emacs developers would
accept a patch with that sort of special-casing in either place. If so,
I'll do it however they want.
Ken
prev parent reply other threads:[~2009-06-18 12:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-17 15:47 browse-url/w32-shell-execute problems on cygwin Ken Brown
2009-06-17 16:06 ` Jason Rumney
2009-06-17 16:14 ` Ken Brown
2009-06-17 18:02 ` Ken Brown
2009-06-17 21:30 ` Ken Brown
2009-06-17 21:44 ` Chong Yidong
2009-06-18 1:29 ` Ken Brown
2009-06-17 22:23 ` David Robinow
2009-06-18 12:46 ` Ken Brown [this message]
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=4A3A3738.2050307@cornell.edu \
--to=kbrown@cornell.edu \
--cc=drobinow@gmail.com \
--cc=emacs-devel@gnu.org \
--cc=jasonr@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.