From: Felix Dietrich <felix.dietrich@sperrhaken.name>
To: help-gnu-emacs@gnu.org
Subject: Re: Making browse-url-firefox more robust?
Date: Wed, 06 Apr 2022 02:50:31 +0200 [thread overview]
Message-ID: <877d83yqzs.fsf@sperrhaken.name> (raw)
In-Reply-To: <87fsoyutye.fsf@vagabond.tim-landscheidt.de> (Tim Landscheidt's message of "Fri, 04 Feb 2022 22:51:05 +0000")
Tim Landscheidt <tim@tim-landscheidt.de> 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 <about:preferences>, what does the option “Open links in tabs
instead of new windows” under General/Tabs say? The corresponding
configuration settings under <about:config> 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 “--new-tab” switch (starting with
a double or a single dash, does not seem to matter) to Firefox:
firefox --new-tab URL
There also is an analogous “--new-window” switch.
Links:
<https://kb.mozillazine.org/Browser.link.open_newwindow>
<https://wiki.mozilla.org/Firefox/CommandLineOptions#-new-tab_URL>
--
Felix Dietrich
prev parent reply other threads:[~2022-04-06 0:50 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2022-02-04 22:51 Making browse-url-firefox more robust? Tim Landscheidt
2022-02-05 1:41 ` Emanuel Berg via Users list for the GNU Emacs text editor
2022-04-05 23:07 ` TRS-80
2022-04-06 0:50 ` Felix Dietrich [this message]
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=877d83yqzs.fsf@sperrhaken.name \
--to=felix.dietrich@sperrhaken.name \
--cc=help-gnu-emacs@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.