aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-07-28 15:55:31 +0200
committerLars Ingebrigtsen2019-07-28 15:55:37 +0200
commita32e1feb438e793a8378671c7124d226b58f65f0 (patch)
tree238eed9aeda4abfd361c57f557cfb1154d4640da /etc
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 'etc')
-rw-r--r--etc/NEWS10
1 files changed, 10 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index cccb8017bd4..6517f1938c2 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -765,6 +765,12 @@ start of a sentence or at '(point-min)', else '@ref'.
765It now treats the optional 2nd argument to mean that the URL should be 765It now treats the optional 2nd argument to mean that the URL should be
766shown in the currently selected window. 766shown in the currently selected window.
767 767
768*** A new function, 'browse-url-add-buttons' can be used to add clickable
769links to most ordinary special-mode buffers that display text that
770have URLs embedded. 'browse-url-button-regexp' controls what's
771considered a button.
772
773*** A new variable, 'browse-url-external-browser', has been added.
768** Comint 774** Comint
769 775
770+++ 776+++
@@ -1037,6 +1043,10 @@ has been executed.
1037If set, shr will not render tags with attribute 'aria-hidden="true"'. 1043If set, shr will not render tags with attribute 'aria-hidden="true"'.
1038This attribute is meant to tell screen readers to ignore a tag. 1044This attribute is meant to tell screen readers to ignore a tag.
1039 1045
1046+++
1047*** 'shr-external-browser' has been made into an obsolete alias
1048of 'browse-url-external-browser'.
1049
1040--- 1050---
1041*** 'shr-tag-ol' now respects the ordered list 'start' attribute. 1051*** 'shr-tag-ol' now respects the ordered list 'start' attribute.
1042 1052