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 EXTERNAL MOUSE-EVENT)
Documentation
Follow the link under point using browse-url.
If EXTERNAL (the prefix if used interactively), open with the external 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 external mouse-event)
"Follow the link under point using `browse-url'.
If EXTERNAL (the prefix if used interactively), open with the
external 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"))
(if external
(funcall browse-url-secondary-browser-function url)
(browse-url url))))