Function: browse-url-button-open
browse-url-button-open is an autoloaded, interactive and byte-compiled
function defined in browse-url.el.gz.
Signature
(browse-url-button-open &optional SECONDARY MOUSE-EVENT)
Documentation
Follow the link under point using browse-url.
If SECONDARY (the prefix if used interactively), open with the secondary browser instead of the default one.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/net/browse-url.el.gz
;;;###autoload
(defun browse-url-button-open (&optional secondary mouse-event)
"Follow the link under point using `browse-url'.
If SECONDARY (the prefix if used interactively), open with the
secondary browser instead of the default one."
(interactive (list current-prefix-arg last-nonmenu-event))
(mouse-set-point mouse-event)
(let ((url (get-text-property (point) 'browse-url-data)))
(unless url
(error "No URL under point"))
(let ((browse-url-browser-function
(if secondary
browse-url-secondary-browser-function
browse-url-browser-function)))
(browse-url url))))