all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tomas@tuxteam.de (Tomas Zerolo)
Cc: Tomas Zerolo <tomas@tuxteam.de>, emacs-devel@gnu.org
Subject: Re: preferred vs. running browser
Date: Fri, 28 Apr 2006 07:01:11 +0200	[thread overview]
Message-ID: <20060428050111.GA7010@www.trapp.net> (raw)
In-Reply-To: <E1FYVeh-0004u3-9V@fencepost.gnu.org>


[-- 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

  reply	other threads:[~2006-04-28  5:01 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
2006-04-25 20:46     ` Reiner Steib
2006-04-25 22:05   ` Richard Stallman
2006-04-28  5:01     ` Tomas Zerolo [this message]
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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060428050111.GA7010@www.trapp.net \
    --to=tomas@tuxteam.de \
    --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 external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.