diff options
| author | Basil L. Contovounesios | 2020-05-06 18:02:32 +0100 |
|---|---|---|
| committer | Basil L. Contovounesios | 2020-05-22 16:28:20 +0100 |
| commit | 3a7894ecd11c66337e7aea8ade8f47673d290a24 (patch) | |
| tree | b3be04e3235bce5c8d408e765390df5d46bae692 /etc | |
| parent | 3f082af536c33ba713561e7ad4b691aaad488701 (diff) | |
| download | emacs-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/NEWS | 18 |
1 files changed, 18 insertions, 0 deletions
| @@ -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 |
| 357 | either an internal or external browser. | 357 | either an internal or external browser. |
| 358 | 358 | ||
| 359 | ** SHR | ||
| 360 | |||
| 361 | --- | ||
| 362 | *** The command 'shr-browse-url' now supports custom mailto handlers. | ||
| 363 | Clicking on or otherwise following a 'mailto:' link in a HTML buffer | ||
| 364 | rendered by SHR previously invoked the command 'browse-url-mailto'. | ||
| 365 | This is still the case by default, but if you customize | ||
| 366 | 'browse-url-mailto-function' or 'browse-url-handlers' to call some | ||
| 367 | other 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. | ||
| 373 | The function that is invoked when clicking on or otherwise following a | ||
| 374 | 'mailto:' link in an EWW buffer can now be customized. For more | ||
| 375 | information, 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'. |