From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Felix Dietrich Newsgroups: gmane.emacs.help Subject: Re: Making browse-url-firefox more robust? Date: Wed, 06 Apr 2022 02:50:31 +0200 Message-ID: <877d83yqzs.fsf@sperrhaken.name> References: <87fsoyutye.fsf@vagabond.tim-landscheidt.de> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="38274"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (gnu/linux) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Wed Apr 06 02:51:15 2022 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1nbttD-0009oN-1y for geh-help-gnu-emacs@m.gmane-mx.org; Wed, 06 Apr 2022 02:51:15 +0200 Original-Received: from localhost ([::1]:45782 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nbttB-0001op-Pr for geh-help-gnu-emacs@m.gmane-mx.org; Tue, 05 Apr 2022 20:51:13 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:51986) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbtsn-0001lc-76 for help-gnu-emacs@gnu.org; Tue, 05 Apr 2022 20:50:49 -0400 Original-Received: from mout.kundenserver.de ([212.227.126.135]:33337) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nbtsh-00027x-Ii for help-gnu-emacs@gnu.org; Tue, 05 Apr 2022 20:50:48 -0400 Original-Received: from localhost ([78.54.126.235]) by mrelayeu.kundenserver.de (mreue012 [212.227.15.167]) with ESMTPSA (Nemesis) id 1MxHLs-1nvW9n2KEq-00xYT5 for ; Wed, 06 Apr 2022 02:50:39 +0200 In-Reply-To: <87fsoyutye.fsf@vagabond.tim-landscheidt.de> (Tim Landscheidt's message of "Fri, 04 Feb 2022 22:51:05 +0000") X-Provags-ID: V03:K1:+/R7L6gdsRfnY6BSpC9yauARJCdO4iH/1z/7UnRnTLuZytQkskZ JBWevkallXfm5KDXaSjFG3vS/1Dk59kzEDTvv5mmQkzHCu2HFNMDr110TjOOiVNUP47KLoj sq/0o2+KxmqNYBUIL8pvYEy8J6t75aonPCpgTz/F8U8w8QGdec4tY7L7Lo7KlrBsByZHOY7 QBVdHA6DHXVUeXIfBzv1Q== X-UI-Out-Filterresults: notjunk:1;V03:K0:8vVQyZSVCDs=:wTkPj1FO2GA5n95ZYUydpQ ppqNPsZP/Z/0ZlWPUQGJ+B2Q2kht3bSfQVEuJ3FiyEL3RPhV6vLScl7qxDhgr8Qz0Thpwd3Ve XQcgPNky6q2fqymsJyxqrN6vS10HJINDTcnJTEw+nxaF92SvdQ7cCldarootJaq4szVlMDP4O t4cPM0lNQayPFlzrOrFjaKrKfXHbsWFUvLZG1YiJom5mayEnW/s9/SC8roXQfySEnzhYU4OA0 jyrqooobeEDZirZqyOO6DSa/YdxuPySvwr3rbekA0wmOncfh9IezSvIl4lrbPy94T0Jc+aEdg 2xxQyoYU9iyiMygWW+yPsKjY6qP5dbAASMgmw4tmdj69I49dQIAIBeRuizyR9ypc98xEFCH8q LRkP5KX1Pce04qa5jlCCU3VDWM/q0vqoeRk+/gsgLWng92ZnCuLDKReN1j9vZHvBQSAgPjhFN sNKhQI1gztPieVQ3zcZ55eo8x7tDk33nSgAjTgDQbIn9TvEDf9MKvXf25w0OIDQVIUBmVh3vt 1lD/9NovPniAuZWsOXK6jc08EoAUay8oJ4sZk1rrR3oj2KRFA51x8+tAcbsHEwfwmIlWHfnZf u6D1mCxk8jUY1nXhn9o6uhygbjVOUs4TRz/fPXaf2irDLR/7kh3LBdcm1Laffeqk0kc8q0SGZ nxj2H6NZpHzxcjEx5XDzUrJ6mcEKmzXJ1VLP2qnv8sqF1fW/83zN2UAnyKuu8NOv6cvnqDYdo RZfSJYYji4qv8N+l Received-SPF: none client-ip=212.227.126.135; envelope-from=felix.dietrich@sperrhaken.name; helo=mout.kundenserver.de X-Spam_score_int: -18 X-Spam_score: -1.9 X-Spam_bar: - X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:136869 Archived-At: Tim Landscheidt writes: > I have set browse-url-browser-function to > 'browse-url-firefox (and browse-url-firefox-arguments to > '("-P" "default")) and it works reasonably fine: I see a > link in Gnus or elsewhere in Emacs, I click on it, the link > opens in a new tab in Firefox. > > Where it becomes a nuisance is when I don't need to open one > link, but many, for example generated by some database query > or generator function: > > | (dotimes (i 100) > | (browse-url (format "https://some.url/%d" i))) > > In this case, each call to browse-url launches a separate, > memory-hungry Firefox instance which tries to connect to the > initial instance and either succeeds or fails after some > time in which my system is essentially unusable. If you go to , what does the option =E2=80=9COpen links = in tabs instead of new windows=E2=80=9D under General/Tabs say? The corresponding configuration settings under are: - browser.link.open_newwindow + 1 :: Open links in the current tab. + 2 :: Open links in a new window. + 3 :: Open links in a new tab. - browser.link.open_newwindow.override.external + -1 :: Use the value browser.link.open_newwindow. + Other values have the same meaning as for browser.link.open_newwindow. For one of calls you can also use the =E2=80=9C--new-tab=E2=80=9D switch (s= tarting with a double or a single dash, does not seem to matter) to Firefox: firefox --new-tab URL There also is an analogous =E2=80=9C--new-window=E2=80=9D switch. Links: --=20 Felix Dietrich