From: Werner LEMBERG <wl@gnu.org>
Cc: emacs-devel@gnu.org
Subject: Re: preferred vs. running browser
Date: Tue, 25 Apr 2006 21:29:47 +0200 (CEST) [thread overview]
Message-ID: <20060425.212947.246510654.wl@gnu.org> (raw)
In-Reply-To: <20060425113149.GB16926@www.trapp.net>
> > . 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)" ||
> <<try Konqueror remotely>> ||
> <<start firefox>> ||
> <<*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
next prev parent reply other threads:[~2006-04-25 19:29 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-04-23 4:36 preferred vs. running browser Werner LEMBERG
2006-04-23 14:36 ` Sascha Wilde
2006-04-23 21:58 ` Richard Stallman
2006-04-24 4:51 ` Werner LEMBERG
2006-04-25 22:04 ` Richard Stallman
2006-04-25 22:12 ` Lennart Borgman
2006-04-26 5:00 ` Stefan Monnier
2006-04-25 11:31 ` Tomas Zerolo
2006-04-25 19:29 ` Werner LEMBERG [this message]
2006-04-25 20:46 ` Reiner Steib
2006-04-25 22:05 ` Richard Stallman
2006-04-28 5:01 ` Tomas Zerolo
2006-04-28 15:45 ` Richard Stallman
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20060425.212947.246510654.wl@gnu.org \
--to=wl@gnu.org \
--cc=emacs-devel@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).