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: Wed, 17 Jun 2009 21:29:59 -0400 Message-ID: <4A399897.8050607@cornell.edu> References: <4A391012.1060306@cornell.edu> <4A3914A3.4090205@gnu.org> <4A392F9A.1030309@cornell.edu> <4A396061.4000604@cornell.edu> <87zlc67cxe.fsf@stupidchicken.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 1245288623 29656 80.91.229.12 (18 Jun 2009 01:30:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jun 2009 01:30:23 +0000 (UTC) Cc: Emacs , Jason Rumney To: Chong Yidong Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 18 03:30:20 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 1MH6SJ-0006f6-Op for ged-emacs-devel@m.gmane.org; Thu, 18 Jun 2009 03:30:20 +0200 Original-Received: from localhost ([127.0.0.1]:49986 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH6SJ-0008Nf-1m for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2009 21:30:19 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MH6SD-0008Kx-UW for emacs-devel@gnu.org; Wed, 17 Jun 2009 21:30:13 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MH6S9-0008Cn-9b for emacs-devel@gnu.org; Wed, 17 Jun 2009 21:30:13 -0400 Original-Received: from [199.232.76.173] (port=36392 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH6S9-0008Cb-2R for emacs-devel@gnu.org; Wed, 17 Jun 2009 21:30:09 -0400 Original-Received: from granite1.mail.cornell.edu ([128.253.83.141]:60768 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 1MH6S5-0003KP-I2; Wed, 17 Jun 2009 21:30:06 -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 n5I1U2p9008826 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 17 Jun 2009 21:30:03 -0400 (EDT) User-Agent: Thunderbird 2.0.0.21 (Windows/20090302) In-Reply-To: <87zlc67cxe.fsf@stupidchicken.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:111568 Archived-At: On 6/17/2009 5:44 PM, Chong Yidong wrote: > Ken Brown writes: > >> - (browse-url (browse-url-file-url file)) >> + (if (eq system-type 'cygwin) >> + (shell-command (concat "cygstart " (shell-quote-argument file))) >> + (browse-url (browse-url-file-url file))) >> >> Is there a better way to do this? > > The better way is probably to change browse-url-default-browser I'm not sure I understand. I already have a good way of asking a browser to load a URL via browse-url-default-windows-browser (as I patched it). The issue here is that browse-url-file-url doesn't return a suitable URL. Or am I misunderstanding you? > (BTW, this is all post-23.1). Yes, I wasn't expecting anything else. Ken