From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Werner LEMBERG Newsgroups: gmane.emacs.devel Subject: Re: preferred vs. running browser Date: Tue, 25 Apr 2006 21:29:47 +0200 (CEST) Message-ID: <20060425.212947.246510654.wl@gnu.org> References: <20060423.063614.74737467.wl@gnu.org> <20060425113149.GB16926@www.trapp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1145993490 21500 80.91.229.2 (25 Apr 2006 19:31:30 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Apr 2006 19:31:30 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Apr 25 21:31:26 2006 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FYTFP-0006hH-Ei for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 21:30:56 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYTFP-0005yr-02 for ged-emacs-devel@m.gmane.org; Tue, 25 Apr 2006 15:30:55 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FYTFB-0005yK-Sl for emacs-devel@gnu.org; Tue, 25 Apr 2006 15:30:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FYTF9-0005vo-25 for emacs-devel@gnu.org; Tue, 25 Apr 2006 15:30:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FYTF8-0005vf-V5 for emacs-devel@gnu.org; Tue, 25 Apr 2006 15:30:38 -0400 Original-Received: from [212.227.126.171] (helo=moutng.kundenserver.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FYTHf-0005FW-5v for emacs-devel@gnu.org; Tue, 25 Apr 2006 15:33:15 -0400 Original-Received: from [62.143.170.242] (helo=localhost) by mrelayeu.kundenserver.de (node=mrelayeu9) with ESMTP (Nemesis), id 0ML2xA-1FYTEx3HKD-0000fa; Tue, 25 Apr 2006 21:30:37 +0200 Original-To: tomas@tuxteam.de In-Reply-To: <20060425113149.GB16926@www.trapp.net> X-Mailer: Mew version 5.0.50 on Emacs 22.0.50.1 / Mule 5.0 (SAKAKI) X-Provags-ID: kundenserver.de abuse@kundenserver.de login:2dc398bc694a1e60948148ba0a42c0da 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:53408 Archived-At: > > . browse-url doesn't check whether one of the listed browsers is > > already running (assuming that browse-url-browser-function is > > not customized, this is, the value is > > 'browse-url-default-browser). In my case I have called firefox, > > but browse-url called mozilla. > > > > Wouldn't it be better to add some code so that a browser which > > is > > Hmpf. You could always try to write a wrapper shell script which tries > alternatives, in descending order of desirability, like so: > > firefox -remote "openURL(http://www.emacswiki.org,new-tab)" || > <> || > <> || > <<*GASP* Internet Explorer there?>> || > ... There is probably a misunderstanding. My main interest is to avoid opening a second browser. Assuming that Emacs has `Mozilla' first in its list, and I'm running Firefox, browse-url ignores the latter and starts a fresh Mozilla. I would like this behaviour: . If browse-url-browser-function is customized to a specific browser, always use it. . Otherwise check whether there is a browser running -- I don't know whether it is possible to do that. If such a browser is found, use it. . Otherwise, start a new browser, trying binaries in the order as specified within browse-url-default-browser. Werner