aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorBasil L. Contovounesios2020-05-06 18:02:32 +0100
committerBasil L. Contovounesios2020-05-22 16:28:20 +0100
commit3a7894ecd11c66337e7aea8ade8f47673d290a24 (patch)
treeb3be04e3235bce5c8d408e765390df5d46bae692 /etc
parent3f082af536c33ba713561e7ad4b691aaad488701 (diff)
downloademacs-3a7894ecd11c66337e7aea8ade8f47673d290a24.tar.gz
emacs-3a7894ecd11c66337e7aea8ade8f47673d290a24.zip
Improve shr/eww handling of mailto URLs
* lisp/net/eww.el (eww): Use function-put in place of put, as recommended in "(elisp) Symbol Plists". (eww-follow-link): * lisp/net/shr.el (shr-browse-url): Rather than call browse-url-mail directly, call browse-url which respects the user options browse-url-handlers and browse-url-mailto-function. (Bug#41133) (shr--current-link-region): Return nil if there is no link at point. (shr--blink-link): Adapt accordingly. (shr-fill-line, shr-indent, shr-table-body): Refactor to avoid some unnecessary allocations. * etc/NEWS: Announce that eww-follow-link and shr-browse-url support custom URL handlers.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS18
1 files changed, 18 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 4533dc46c56..eb73bd64e05 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -356,6 +356,24 @@ symbol property to the browsing functions. With a new command
356'browse-url-with-browser-kind', an URL can explicitly be browsed with 356'browse-url-with-browser-kind', an URL can explicitly be browsed with
357either an internal or external browser. 357either an internal or external browser.
358 358
359** SHR
360
361---
362*** The command 'shr-browse-url' now supports custom mailto handlers.
363Clicking on or otherwise following a 'mailto:' link in a HTML buffer
364rendered by SHR previously invoked the command 'browse-url-mailto'.
365This is still the case by default, but if you customize
366'browse-url-mailto-function' or 'browse-url-handlers' to call some
367other function, it will now be called instead of the default.
368
369** EWW
370
371---
372*** The command 'eww-follow-link' now supports custom mailto handlers.
373The function that is invoked when clicking on or otherwise following a
374'mailto:' link in an EWW buffer can now be customized. For more
375information, see the related entry about 'shr-browse-url' above.
376
359** Project 377** Project
360 378
361*** New user option 'project-vc-merge-submodules'. 379*** New user option 'project-vc-merge-submodules'.