aboutsummaryrefslogtreecommitdiffstats
path: root/doc/misc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-28 15:55:31 +0200
committerLars Ingebrigtsen2019-07-28 15:55:37 +0200
commita32e1feb438e793a8378671c7124d226b58f65f0 (patch)
tree238eed9aeda4abfd361c57f557cfb1154d4640da /doc/misc
parentdcba39b445e8f71c5f8df34a38ae8fc726a51843 (diff)
downloademacs-a32e1feb438e793a8378671c7124d226b58f65f0.tar.gz
emacs-a32e1feb438e793a8378671c7124d226b58f65f0.zip
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.
Diffstat (limited to 'doc/misc')
-rw-r--r--doc/misc/eww.texi4
-rw-r--r--doc/misc/gnus.texi2
2 files changed, 3 insertions, 3 deletions
diff --git a/doc/misc/eww.texi b/doc/misc/eww.texi
index 8dc58e84257..cd74aa32c77 100644
--- a/doc/misc/eww.texi
+++ b/doc/misc/eww.texi
@@ -187,7 +187,7 @@ switch EWW buffers through a minibuffer prompt, press @kbd{s}
187(@code{eww-switch-to-buffer}). 187(@code{eww-switch-to-buffer}).
188 188
189@findex eww-browse-with-external-browser 189@findex eww-browse-with-external-browser
190@vindex shr-external-browser 190@vindex browse-url-external-browser
191@vindex eww-use-external-browser-for-content-type 191@vindex eww-use-external-browser-for-content-type
192@kindex & 192@kindex &
193@cindex External Browser 193@cindex External Browser
@@ -197,7 +197,7 @@ or are not implemented (E.g., JavaScript). If you have trouble
197viewing a website with EWW then hit @kbd{&} 197viewing a website with EWW then hit @kbd{&}
198(@code{eww-browse-with-external-browser}) inside the EWW buffer to 198(@code{eww-browse-with-external-browser}) inside the EWW buffer to
199open the website in the external browser specified by 199open the website in the external browser specified by
200@code{shr-external-browser}. Some content types, such as video or 200@code{browse-url-external-browser}. Some content types, such as video or
201audio content, do not make sense to display in GNU Emacs at all. You 201audio content, do not make sense to display in GNU Emacs at all. You
202can tell EWW to open specific content automatically in an external 202can tell EWW to open specific content automatically in an external
203browser by customizing 203browser by customizing
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index 3968fa58377..7a3322d9fc0 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -10164,7 +10164,7 @@ do so.
10164@findex gnus-summary-browse-url 10164@findex gnus-summary-browse-url
10165Scan the article buffer for links, and offer them to the user for 10165Scan the article buffer for links, and offer them to the user for
10166browsing with @code{browse-url}. With a prefix argument, browse with 10166browsing with @code{browse-url}. With a prefix argument, browse with
10167@code{shr-external-browser} instead. 10167@code{browse-url-external-browser} instead.
10168 10168
10169@end table 10169@end table
10170 10170