From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Robinow Newsgroups: gmane.emacs.devel Subject: Re: browse-url/w32-shell-execute problems on cygwin Date: Wed, 17 Jun 2009 18:23:51 -0400 Message-ID: <4eb0089f0906171523s4fb68777v6c6eae0f4b8d2a1e@mail.gmail.com> References: <4A391012.1060306@cornell.edu> <4A3914A3.4090205@gnu.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1245277449 5321 80.91.229.12 (17 Jun 2009 22:24:09 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2009 22:24:09 +0000 (UTC) Cc: Ken Brown , Emacs To: Jason Rumney Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 18 00:24:07 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 1MH3Y6-0006ye-LM for ged-emacs-devel@m.gmane.org; Thu, 18 Jun 2009 00:24:07 +0200 Original-Received: from localhost ([127.0.0.1]:53876 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH3Y6-00050l-2B for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2009 18:24:06 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MH3Y1-00050f-Gg for emacs-devel@gnu.org; Wed, 17 Jun 2009 18:24:01 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MH3Xw-0004zy-0W for emacs-devel@gnu.org; Wed, 17 Jun 2009 18:24:00 -0400 Original-Received: from [199.232.76.173] (port=59981 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH3Xv-0004zn-R6 for emacs-devel@gnu.org; Wed, 17 Jun 2009 18:23:55 -0400 Original-Received: from mail-pz0-f203.google.com ([209.85.222.203]:33202) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1MH3Xt-0001m9-V0; Wed, 17 Jun 2009 18:23:54 -0400 Original-Received: by pzk41 with SMTP id 41so684349pzk.14 for ; Wed, 17 Jun 2009 15:23:51 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type :content-transfer-encoding; bh=kXMKNFBuoRhZTtvpurn6jnoJJNXu2uh1gsS4keckr+o=; b=RSo/Mp1iXu9bhUWsYkoMD1s7yF1Q51K60paS1YtDaCVi7+aVoc1WKr9nw4nOqZclIQ nyhlokzQ9TruryQcqJlaT3xeR9X9eQ3NQf5XXxAK19v04kKVsinJ8chByY3DHqxefU45 COZYybkJJ6Elb27t4K9x0t2/DJkwNeO4jfSYg= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type:content-transfer-encoding; b=SQonlLFovMNFtgpN+uChLSDgmDoKS4M18QR+6GbLZ/EeKH5t9NLP9AqncPWRTHVb4W zoY0+emeAMEO7qNZX+YBE4lE8TN4lXu+9lxkGCmI/lf7L6G1571vhmLcUgoTf6M2mzhj R7b/bPlwjBvUp5H2w3o9WkUYjWWrGVDWoKn9I= Original-Received: by 10.142.204.11 with SMTP id b11mr636108wfg.257.1245277431482; Wed, 17 Jun 2009 15:23:51 -0700 (PDT) In-Reply-To: <4A3914A3.4090205@gnu.org> X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.6 (newer, 2) 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:111567 Archived-At: On Wed, Jun 17, 2009 at 12:06 PM, Jason Rumney wrote: > Ken Brown wrote: ... >> =A0(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 program= s. > 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.