From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.devel Subject: Re: browse-url/w32-shell-execute problems on cygwin Date: Thu, 18 Jun 2009 08:46:48 -0400 Message-ID: <4A3A3738.2050307@cornell.edu> References: <4A391012.1060306@cornell.edu> <4A3914A3.4090205@gnu.org> <4eb0089f0906171523s4fb68777v6c6eae0f4b8d2a1e@mail.gmail.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1245332281 15347 80.91.229.12 (18 Jun 2009 13:38:01 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2009 13:38:01 +0000 (UTC) Cc: Emacs , Jason Rumney To: David Robinow Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 18 15:37:57 2009 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 1MHHoP-0006P0-LE for ged-emacs-devel@m.gmane.org; Thu, 18 Jun 2009 15:37:54 +0200 Original-Received: from localhost ([127.0.0.1]:39240 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHHoP-0006i3-3f for ged-emacs-devel@m.gmane.org; Thu, 18 Jun 2009 09:37:53 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MHH1H-0002JW-2Z for emacs-devel@gnu.org; Thu, 18 Jun 2009 08:47:07 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MHH1C-0002DX-W5 for emacs-devel@gnu.org; Thu, 18 Jun 2009 08:47:06 -0400 Original-Received: from [199.232.76.173] (port=58761 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MHH1C-0002DE-Ld for emacs-devel@gnu.org; Thu, 18 Jun 2009 08:47:02 -0400 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141]:52503 helo=authusersmtp.mail.cornell.edu) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MHH1A-0007Dy-2a; Thu, 18 Jun 2009 08:47:00 -0400 Original-Received: from [192.168.1.5] (cpe-67-241-20-9.twcny.res.rr.com [67.241.20.9]) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.13.1/8.12.10) with ESMTP id n5ICksk1000464 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Thu, 18 Jun 2009 08:46:55 -0400 (EDT) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <4eb0089f0906171523s4fb68777v6c6eae0f4b8d2a1e@mail.gmail.com> X-detected-operating-system: by monty-python.gnu.org: Solaris 9 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:111575 Archived-At: On 6/17/2009 6:23 PM, David Robinow wrote: > On Wed, Jun 17, 2009 at 12:06 PM, Jason Rumney 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