From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Chong Yidong Newsgroups: gmane.emacs.devel Subject: Re: browse-url/w32-shell-execute problems on cygwin Date: Wed, 17 Jun 2009 17:44:45 -0400 Message-ID: <87zlc67cxe.fsf@stupidchicken.com> References: <4A391012.1060306@cornell.edu> <4A3914A3.4090205@gnu.org> <4A392F9A.1030309@cornell.edu> <4A396061.4000604@cornell.edu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1245275126 31012 80.91.229.12 (17 Jun 2009 21:45:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 17 Jun 2009 21:45:26 +0000 (UTC) Cc: Emacs , Jason Rumney To: Ken Brown Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Jun 17 23:45:23 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 1MH2wQ-0007mA-IZ for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2009 23:45:10 +0200 Original-Received: from localhost ([127.0.0.1]:38726 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH2wP-0000Lm-W3 for ged-emacs-devel@m.gmane.org; Wed, 17 Jun 2009 17:45:10 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1MH2wC-00006l-WD for emacs-devel@gnu.org; Wed, 17 Jun 2009 17:44:57 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1MH2w7-0008Oe-AT for emacs-devel@gnu.org; Wed, 17 Jun 2009 17:44:56 -0400 Original-Received: from [199.232.76.173] (port=33085 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1MH2w7-0008O0-1p for emacs-devel@gnu.org; Wed, 17 Jun 2009 17:44:51 -0400 Original-Received: from pantheon-po31.its.yale.edu ([130.132.50.82]:43895) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1MH2w4-0004Gq-5C; Wed, 17 Jun 2009 17:44:48 -0400 Original-Received: from furry (dhcp128036014144.central.yale.edu [128.36.14.144]) (authenticated bits=0) by pantheon-po31.its.yale.edu (8.12.11.20060308/8.12.11) with ESMTP id n5HLijXG020705 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NOT); Wed, 17 Jun 2009 17:44:46 -0400 Original-Received: by furry (Postfix, from userid 1000) id 9752BC09B; Wed, 17 Jun 2009 17:44:45 -0400 (EDT) In-Reply-To: <4A396061.4000604@cornell.edu> (Ken Brown's message of "Wed, 17 Jun 2009 17:30:09 -0400") User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.0.94 (gnu/linux) X-YaleITSMailFilter: Version 1.2c (attachment(s) not renamed) X-detected-operating-system: by monty-python.gnu.org: GNU/Linux 2.4-2.6 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:111564 Archived-At: 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 (BTW, this is all post-23.1).