]> git.eshelyaron.com Git - emacs.git/commit
Enable browse-url to buttonize buffers
authorLars Ingebrigtsen <larsi@gnus.org>
Sun, 28 Jul 2019 13:55:31 +0000 (15:55 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sun, 28 Jul 2019 13:55:37 +0000 (15:55 +0200)
commita32e1feb438e793a8378671c7124d226b58f65f0
tree238eed9aeda4abfd361c57f557cfb1154d4640da
parentdcba39b445e8f71c5f8df34a38ae8fc726a51843
Enable browse-url to buttonize buffers

This patch also moves the internal/external browser logic from
shr to browse-url, where it belongs more naturally.

* doc/misc/eww.texi (Basics): Adjust to browse-url-external-browser.

* doc/misc/gnus.texi (Article Commands): Ditto.

* lisp/gnus/gnus-art.el (gnus-button-url-regexp): Default to
`browse-url-button-regexp', which has taken over the definition
previously enjoyed by this variable.

* lisp/gnus/gnus-sum.el (gnus-summary-browse-url): Adjust usage.

* lisp/net/browse-url.el (browse-url--browser-defcustom-type): New
internal variable...
(browse-url-browser-function, browse-url-external-browser): Used
by these two; the latter of which is a new variable.
(browse-url-botton-regexp): New variable.
(browse-url-button-map): New keymap.
(browse-url-button): New face.
(browse-url-add-buttons): New function to add clickable browse-url
buttons to almost any buffer.
(browse-url-button-open): New command.
(browse-url-button-copy): New command.

* lisp/net/eww.el (eww-browse-with-external-browser)
(eww-follow-link): Adjust usage.

* lisp/net/shr.el (shr-external-browser): Make an obsolete alias
of `browse-url-external-browser'.
(shr-browse-url): Adjust usage.
doc/misc/eww.texi
doc/misc/gnus.texi
etc/NEWS
lisp/gnus/gnus-art.el
lisp/gnus/gnus-sum.el
lisp/net/browse-url.el
lisp/net/eww.el
lisp/net/shr.el