Variable: browse-url-secondary-browser-function

browse-url-secondary-browser-function is a customizable variable defined in browse-url.el.gz.

Value

browse-url-default-browser

Documentation

Function used to launch an alternative browser.

This browser is used as the secondary browser choice, typically when a prefix argument is given to a URL-opening command in those modes that support this (for instance browse-url-at-point, goto-addr-at-point, eww or shr).

This assumption is that browse-url-secondary-browser-function and browse-url-browser-function are set to distinct browsers. Either one of the two functions should call an external browser and the other one should not do the same.

Also see browse-url-browser-function.

This variable was added, or its default value changed, in Emacs 27.1.

Probably introduced at or before Emacs version 27.1.

Aliases

shr-external-browser (obsolete since 27.1)

Source Code

;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
(defcustom browse-url-secondary-browser-function 'browse-url-default-browser
  "Function used to launch an alternative browser.

This browser is used as the secondary browser choice, typically
when a prefix argument is given to a URL-opening command in those
modes that support this (for instance `browse-url-at-point',
`goto-addr-at-point', eww or shr).

This assumption is that `browse-url-secondary-browser-function'
and `browse-url-browser-function' are set to distinct browsers.
Either one of the two functions should call an external browser
and the other one should not do the same.

Also see `browse-url-browser-function'."
  :version "27.1"
  :type browse-url--browser-defcustom-type)