* preferred vs. running browser
@ 2006-04-23 4:36 Werner LEMBERG
2006-04-23 14:36 ` Sascha Wilde
` (2 more replies)
0 siblings, 3 replies; 13+ messages in thread
From: Werner LEMBERG @ 2006-04-23 4:36 UTC (permalink / raw)
IMHO there are two problems with the default browser in browse-url.
. In browse-url-default-browser, Mozilla is preferred to Firefox.
It seems that today Firefox is already more popular than Mozilla,
so I suggest to revert the default order.
. 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
currently running is always tried first?
Werner
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: preferred vs. running browser
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-25 11:31 ` Tomas Zerolo
2 siblings, 0 replies; 13+ messages in thread
From: Sascha Wilde @ 2006-04-23 14:36 UTC (permalink / raw)
Cc: emacs-devel
Werner LEMBERG <wl@gnu.org> wrote:
> IMHO there are two problems with the default browser in browse-url.
>
> . In browse-url-default-browser, Mozilla is preferred to Firefox.
> It seems that today Firefox is already more popular than Mozilla,
> so I suggest to revert the default order.
I do agree. Particularly with regard to the fact, that there won't be
any end user releases of mozilla anymore.
cheers
sascha
--
Sascha Wilde
Nota bene: wenn Word für Längeres geeignet wäre, würde es schließlich
nicht Word, sondern Sentence, Page oder Article heißen
-- Matthias Mühlich in dctt
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: preferred vs. running browser
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 11:31 ` Tomas Zerolo
2 siblings, 1 reply; 13+ messages in thread
From: Richard Stallman @ 2006-04-23 21:58 UTC (permalink / raw)
Cc: emacs-devel
Wouldn't it be better to add some code so that a browser which is
currently running is always tried first?
That would be a good idea, if there is a way to find this out.
Can you write a patch for this?
Changing the order to put firefox first seems ok too.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: preferred vs. running browser
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-25 11:31 ` Tomas Zerolo
2006-04-25 19:29 ` Werner LEMBERG
2006-04-25 22:05 ` Richard Stallman
2 siblings, 2 replies; 13+ messages in thread
From: Tomas Zerolo @ 2006-04-25 11:31 UTC (permalink / raw)
Cc: emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 1306 bytes --]
On Sun, Apr 23, 2006 at 06:36:14AM +0200, Werner LEMBERG wrote:
>
> IMHO there are two problems with the default browser in browse-url.
>
> . In browse-url-default-browser, Mozilla is preferred to Firefox.
> It seems that today Firefox is already more popular than Mozilla,
> so I suggest to revert the default order.
>
> . 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?>> ||
...
Since this order of desirability is highly user-dependent, it'd be
difficult to give one general solution. Of course you could do this in
Emacs Lisp as well, but again, a general solution might lead to a
customization jungle, I fear.
How would you go about it?
Regards
-- tomás
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: preferred vs. running browser
2006-04-25 11:31 ` Tomas Zerolo
@ 2006-04-25 19:29 ` Werner LEMBERG
2006-04-25 20:46 ` Reiner Steib
2006-04-25 22:05 ` Richard Stallman
1 sibling, 1 reply; 13+ messages in thread
From: Werner LEMBERG @ 2006-04-25 19:29 UTC (permalink / raw)
Cc: emacs-devel
> > . 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
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: preferred vs. running browser
2006-04-25 11:31 ` Tomas Zerolo
2006-04-25 19:29 ` Werner LEMBERG
@ 2006-04-25 22:05 ` Richard Stallman
2006-04-28 5:01 ` Tomas Zerolo
1 sibling, 1 reply; 13+ messages in thread
From: Richard Stallman @ 2006-04-25 22:05 UTC (permalink / raw)
Cc: emacs-devel
alternatives, in descending order of desirability, like so:
firefox -remote "openURL(http://www.emacswiki.org,new-tab)" ||
What does -remote mean?
<<try Konqueror remotely>> ||
<<start firefox>> ||
Once we get to the point of starting a browser,
if none is running, we can use the existing code in browse-url.
^ permalink raw reply [flat|nested] 13+ messages in thread
* Re: preferred vs. running browser
2006-04-25 22:05 ` Richard Stallman
@ 2006-04-28 5:01 ` Tomas Zerolo
2006-04-28 15:45 ` Richard Stallman
0 siblings, 1 reply; 13+ messages in thread
From: Tomas Zerolo @ 2006-04-28 5:01 UTC (permalink / raw)
Cc: Tomas Zerolo, emacs-devel
[-- Attachment #1.1: Type: text/plain, Size: 1416 bytes --]
On Tue, Apr 25, 2006 at 06:05:11PM -0400, Richard Stallman wrote:
> alternatives, in descending order of desirability, like so:
>
> firefox -remote "openURL(http://www.emacswiki.org,new-tab)" ||
Ah, yes, sorry -- I should've mentioned: it tries to send a command to
an already running browser instance (in this case open an URL in a new
tab). If there is no browser reachable (in the X session, I guess), the
command just fails.
So basically there is no difference in whether we try to open something
in a running browser or starting a new browser instance (just different
command lines to try). This would work for Mozilla based browsers; I
don't know about others (but I'd expect them to mimic Mozilla in this
respect).
So my proposal was just to have a list of methods to try (the user
chosing the priorities) -- in the default list, we'd try first (say)
a running Firefox instance, then (say) a running Mozilla instance and so
on, then starting a Firefox instance.
One could do this in an external shell script (so Emacs wouldn't be
aware of all this going on) or as a Lisp function (so the user could
Customize the prioritized list. Usually the distributors will provide a
sensible default).
Now we'd have to find out whether other browsers support a similar thing
to -remote (i.e. open an URL in a running instance and let us know it
worked).
Regards
-- tomás
[-- Attachment #1.2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
[-- Attachment #2: Type: text/plain, Size: 142 bytes --]
_______________________________________________
Emacs-devel mailing list
Emacs-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-devel
^ permalink raw reply [flat|nested] 13+ messages in thread
end of thread, other threads:[~2006-04-28 15:45 UTC | newest]
Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
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
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
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).