From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steve Youngs Newsgroups: gmane.emacs.devel Subject: Re: browse-url-firefox Date: Sun, 06 Jan 2008 10:40:25 +1000 Organization: The SXEmacs Project Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1199580090 6004 80.91.229.12 (6 Jan 2008 00:41:30 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 6 Jan 2008 00:41:30 +0000 (UTC) Keywords: firefox,sentinel,instance,url,running,http,objections,foo To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Jan 06 01:41:49 2008 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1JBJaA-00060L-Fi for ged-emacs-devel@m.gmane.org; Sun, 06 Jan 2008 01:41:48 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBJZh-0000mr-UH for ged-emacs-devel@m.gmane.org; Sat, 05 Jan 2008 19:41:13 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JBJZd-0000ld-HO for emacs-devel@gnu.org; Sat, 05 Jan 2008 19:41:09 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JBJZX-0000fr-Mo for emacs-devel@gnu.org; Sat, 05 Jan 2008 19:41:08 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JBJZX-0000fo-IM for emacs-devel@gnu.org; Sat, 05 Jan 2008 19:41:03 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JBJZV-0005rY-N8 for emacs-devel@gnu.org; Sat, 05 Jan 2008 19:41:03 -0500 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1JBJZD-0005jE-FF for emacs-devel@gnu.org; Sun, 06 Jan 2008 00:40:43 +0000 Original-Received: from 203-206-170-37.perm.iinet.net.au ([203.206.170.37]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Jan 2008 00:40:43 +0000 Original-Received: from steve by 203-206-170-37.perm.iinet.net.au with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 06 Jan 2008 00:40:43 +0000 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 80 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 203-206-170-37.perm.iinet.net.au X-Face: #O)>9erkUv7RJ~0G~5_6lEMz\HC2&~&kV2bsu4TWHI_v~<8Hj%KBBj1[*\uKF*dxbEzwAli ; tSuN`c)F,}p|7{6lA~e.P+7Qo\A%q"lJ7/UtUX@yEZ!X"Tph(3O8`nhPJF>hI4_GOvb%X{+e*Mi_| ^yTf#aTwGG,(3e41?C9B7Pak*'A$+$/hV Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAD1BMVEUpHB9XSkr8+87BuKOK f3UUQ+/kAAAACXBIWXMAAABIAAAASABGyWs+AAAACXZwQWcAAAAwAAAAMADO7oxXAAAB2UlEQVQ4 y3WUa3LDMAiEYeoDgK0DJFYOkMg5gGXp/mcqi+RHpinTHx191i4gCM3/BP05ifNcyxUs+3EUovEE af/nzcKqn1Kx1kwsFGpOV7AQQoLq8gEeYuLEWS3CdgJ4AlQZpjzBI7lxXMkJE9mN1M2NPEkd6LCy hlZHTDAIiu+HbInpdhaYJbj1lIOyjgDRM8pQMRA0hLxLWZTVwCBuvM2isYOYvTSIiWmQ+g3Tej3x LbH/zSsf5lVaK+yO5hdZGR0UYg4i+nOzlpBO+0OZBdegmbcIrbrNvfL303vHaICVGI6nLfBeeXrj PSyvrYNYPFlqgaSnfkPpEv5B+gI8xq9ASaYG5EPKpoF+ZormvR6njAdf4U69gSfJkx1sAHiZC8ql akFWd+kldCcbnVb5HQ1vySACRsTBTVlEmPfU1uKzTfODbW6UQgeMnqcO1NSytHkb0r44d/VoSbOU vhXIyo6lJ4C+ttGEOerQLnTZwZed48UdpGO7yIZTsFt6EZp9StxA241TycCTRJkyVk949Bqa+V3b AGKZdLre0L0bWiUca22Tau/ijReutnttLdASYZsYBhMOY0sJWT3M2Qi6UrEbybViMoB8DYRa69KV 2uzGpbyLxfLx6/ELTL1qAs45WrYAAAAaelRYdEpQRUctQ29sb3JzcGFjZQAAeNozAgAAMwAzERZ+ YwAAACd6VFh0SlBFRy1TYW1wbGluZy1mYWN0b3JzAAB42jOqMNIxrDAEYQARgwLpZA8bYgAAAABJ RU5ErkJggg== Mail-Copies-To: never X-X-Day: Only 2430140 days till X-Day. Got Slack? X-URL: X-Shop: X-Request-PGP: X-PeanutHorst-Lame-Score: 99.60% X-OpenPGP-Fingerprint: 1659 2093 19D5 C06E D320 3A20 1D27 DB4B A94B 3003 X-Now-Playing: The Sounds of Silence --- [Marcel Marceau] X-Discordian-Date: Sweetmorn, the 6th day of Chaos, 3174. X-Attribution: SY X-Arch-Repo: User-Agent: Gnus/5.110007 (No Gnus v0.7) SXEmacs/22.1.8 (Daimler, linux) Cancel-Lock: sha1:Qp+Bnp3q4g7ZkNfICjXGTL8XVaI= X-detected-kernel: by monty-python.gnu.org: Linux 2.6, seldom 2.4 (older, 4) 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:86268 Archived-At: =2D----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 NotDashEscaped: You need GnuPG to verify this message * Eli Zaretskii writes: > The following fragment from browse-url-firefox: > (apply 'start-process > (concat "firefox " url) nil > browse-url-firefox-program [...] > has the effect of invoking Firefox with the URL specified twice on > the command line (so Firefox opens it in two tabs). I think it's a > bug, and that the right fix is to not (concat "firefox " url), but > to use a literal "firefox" instead. Does anyone see where I'm > wrong? Yes. The first arg to #'start-process is just a name to give to the process so it can be more easily identified, it doesn't have anything to do with the actual running of the started process. I've not witnessed the behaviour you're describing, not in any version of Firefox from 1.0 to the current 3.0 betas. > Steve, do you have any objections to such a change? I have no objections if you want to make this change, Eli, but there's not much point in doing so. > Also, why do we need to set up a process-sentinel in this case? > At least on MS-Windows, when an instance of Firefox is already > running, invoking another one like "firefox http://foo.bar" has > the effect of asking the first instance of Firefox to display > http://foo.bar in another tab, and the second Firefox exits > immediately. OK, this appears to be the case for Linux now as well, but I'm fairly sure it wasn't always like that in earlier versions of Firefox. And starting Firefox with `-remote' when there is no running instance gives you an error. Hence, the sentinel. > So the above sentinel has 2 adverse effects: (1) it opens > http://foo.bar twice, because the sentinel is invoked when the > second instance of Firefox exits, and (2) the sentinel is invoked if > I close Firefox by via the window manager, at which time the > sentinel starts Firefox again with the last URL I browsed. I've not witnessed this behaviour either. And I'm not sure which of Firefox, Emacs, MS-Win, or some combo-special, that is to blame. > Is the behavior of Firefox on other platforms different? Apparently so. :-) > I think the right fix for this is to set-process-sentinel to nil. > Any objections? Yes. You would also need to remove the `-remote' arg in #'browse-url-firefox. Of course, you'd only make these changes if I'm wrong about how earlier versions of Firefox handle starting with `firefox http://some.site/' when an instance of Firefox is already running (for non-MS platforms). =2D-=20 |---------------------| | SXEmacs - Even teddy bears love it! | | Get your sxe teddy at | |---------------------------------------| =2D----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.7 (GNU/Linux) Comment: The SXEmacs Project Comment: EMchat - The SXEmacs IM client iEYEARECAAYFAkeAI3oACgkQHSfbS6lLMAOGOgCgzrGSnXDErZUb8WpU7LDKAUIP dnwAoNdYOv+D/Z46GkfEtFjVc2ja3cGG =3DuUxV =2D----END PGP SIGNATURE-----