(@code{eww-switch-to-buffer}).
@findex eww-browse-with-external-browser
-@vindex browse-url-external-browser
+@vindex browse-url-secondary-browser-function
@vindex eww-use-external-browser-for-content-type
@kindex &
@cindex External Browser
viewing a website with EWW then hit @kbd{&}
(@code{eww-browse-with-external-browser}) inside the EWW buffer to
open the website in the external browser specified by
-@code{browse-url-external-browser}. Some content types, such as video or
-audio content, do not make sense to display in GNU Emacs at all. You
-can tell EWW to open specific content automatically in an external
-browser by customizing
+@code{browse-url-secondary-browser-function}. Some content types,
+such as video or audio content, do not make sense to display in GNU
+Emacs at all. You can tell EWW to open specific content automatically
+in an external browser by customizing
@code{eww-use-external-browser-for-content-type}.
@node Advanced
@findex gnus-summary-browse-url
Scan the article buffer for links, and offer them to the user for
browsing with @code{browse-url}. With a prefix argument, browse with
-@code{browse-url-external-browser} instead.
+@code{browse-url-secondary-browser-function} instead.
@end table
have URLs embedded. 'browse-url-button-regexp' controls what's
considered a button.
-*** A new variable, 'browse-url-external-browser', has been added.
+*** A new variable, 'browse-url-secondary-browser-function', has been added.
** Comint
+++
+++
*** 'shr-external-browser' has been made into an obsolete alias
-of 'browse-url-external-browser'.
+of 'browse-url-secondary-browser-function'.
---
*** 'shr-tag-ol' now respects the ordered list 'start' attribute.
"Scan the current article body for links, and offer to browse them.
Links are opened using `browse-url' unless a prefix argument is
-given: Then `browse-url-external-browser' is used instead.
+given: Then `browse-url-secondary-browser-function' is used instead.
If only one link is found, browse that directly, otherwise use
completion to select a link. The first link marked in the
(car urls)))))
(if target
(if external
- (funcall browse-url-external-browser target)
+ (funcall browse-url-secondary-browser-function target)
(browse-url target))
(message "No URLs found.")))))
:type browse-url--browser-defcustom-type
:version "24.1")
-(defcustom browse-url-external-browser 'browse-url-default-browser
- "Function used to launch an external browser.
-This can actually be any browser, internal or external, used as
-the secondary browser choice, and is typically used when giving a
-prefix argument to the URL-opening command (in those modes that
-support this (for instance, eww/shr)."
+(defcustom browse-url-secondary-browser-function 'browse-url-default-browser
+ "Function used to launch an alternative browser.
+This should usually be an external browser (that is, not eww or
+w3m), used as the secondary browser choice, and is typically used
+when giving a prefix argument to the URL-opening command (in
+those modes that support this (for instance, eww/shr)."
:version "27.1"
:type browse-url--browser-defcustom-type)
(unless url
(error "No URL under point"))
(if external
- (funcall browse-url-external-browser url)
+ (funcall browse-url-secondary-browser-function url)
(browse-url url))))
(defun browse-url-button-copy ()
(defun eww-browse-with-external-browser (&optional url)
"Browse the current URL with an external browser.
-The browser to used is specified by the `browse-url-external-browser' variable."
+The browser to used is specified by the
+`browse-url-secondary-browser-function' variable."
(interactive)
- (funcall browse-url-external-browser (or url (plist-get eww-data :url))))
+ (funcall browse-url-secondary-browser-function
+ (or url (plist-get eww-data :url))))
(defun eww-follow-link (&optional external mouse-event)
"Browse the URL under point.
If EXTERNAL is single prefix, browse the URL using
-`browse-url-external-browser'.
+`browse-url-secondary-browser-function'.
If EXTERNAL is double prefix, browse in new buffer."
(interactive (list current-prefix-arg last-nonmenu-event))
((string-match "^mailto:" url)
(browse-url-mail url))
((and (consp external) (<= (car external) 4))
- (funcall browse-url-external-browser url)
+ (funcall browse-url-secondary-browser-function url)
(shr--blink-link))
;; This is a #target url in the same page as the current one.
((and (url-target (url-generic-parse-url url))
:type 'string)
(define-obsolete-variable-alias 'shr-external-browser
- 'browse-url-external-browser "27.1")
+ 'browse-url-secondary-browser-function "27.1")
(defcustom shr-image-animate t
"Non nil means that images that can be animated will be."
(defun shr-browse-url (&optional external mouse-event)
"Browse the URL at point using `browse-url'.
If EXTERNAL is non-nil (interactively, the prefix argument), browse
-the URL using `browse-url-external-browser'.
+the URL using `browse-url-secondary-browser-function'.
If this function is invoked by a mouse click, it will browse the URL
at the position of the click. Optional argument MOUSE-EVENT describes
the mouse click event."
(t
(if external
(progn
- (funcall browse-url-external-browser url)
+ (funcall browse-url-secondary-browser-function url)
(shr--blink-link))
(browse-url url))))))