From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: tomas@tuxteam.de (Tomas Zerolo) Newsgroups: gmane.emacs.devel Subject: Re: preferred vs. running browser Date: Fri, 28 Apr 2006 07:01:11 +0200 Message-ID: <20060428050111.GA7010@www.trapp.net> References: <20060423.063614.74737467.wl@gnu.org> <20060425113149.GB16926@www.trapp.net> NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============0286408279==" X-Trace: sea.gmane.org 1146200504 20250 80.91.229.2 (28 Apr 2006 05:01:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Fri, 28 Apr 2006 05:01:44 +0000 (UTC) Cc: Tomas Zerolo , emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Apr 28 07:01:39 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 1FZL6j-00025d-UB for ged-emacs-devel@m.gmane.org; Fri, 28 Apr 2006 07:01:35 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZL6j-0004Mr-JY for ged-emacs-devel@m.gmane.org; Fri, 28 Apr 2006 01:01:33 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FZL6S-0004Mm-Fw for emacs-devel@gnu.org; Fri, 28 Apr 2006 01:01:16 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FZL6Q-0004ML-Md for emacs-devel@gnu.org; Fri, 28 Apr 2006 01:01:16 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FZL6Q-0004MI-Fm for emacs-devel@gnu.org; Fri, 28 Apr 2006 01:01:14 -0400 Original-Received: from [217.22.192.104] (helo=www.elogos.de) by monty-python.gnu.org with esmtp (Exim 4.52) id 1FZL9T-0007kK-CK; Fri, 28 Apr 2006 01:04:23 -0400 Original-Received: from www.elogos.de (localhost [127.0.0.1]) by www.elogos.de (Postfix) with ESMTP id 7FF84DAD86; Fri, 28 Apr 2006 07:01:11 +0200 (CEST) Original-Received: by www.elogos.de (Postfix, from userid 4000) id 5D7DDDAE5E; Fri, 28 Apr 2006 07:01:11 +0200 (CEST) Original-To: Richard Stallman In-Reply-To: User-Agent: Mutt/1.5.9i 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:53535 Archived-At: --===============0286408279== Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="SLDf9lqlvOQaIe6s" Content-Disposition: inline --SLDf9lqlvOQaIe6s Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Apr 25, 2006 at 06:05:11PM -0400, Richard Stallman wrote: > alternatives, in descending order of desirability, like so: >=20 > 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=C3=A1s --SLDf9lqlvOQaIe6s Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQFEUaGXBcgs9XrR2kYRArf4AJ464R65MI2Lo87z2061jdw5TxdiQwCfclqO IPreiBbGPbmFsjjukZnv2Nc= =sA1d -----END PGP SIGNATURE----- --SLDf9lqlvOQaIe6s-- --===============0286408279== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Emacs-devel mailing list Emacs-devel@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-devel --===============0286408279==--