mu4e/view: Restore URL activation, TAB

Make URL activation work again (with mouse, M-RET), and TAB in
gnus-view.

Fixes: #1946.
This commit is contained in:
Dirk-Jan C. Binnema
2021-03-16 17:13:36 +02:00
parent 08890dee2d
commit 7f244ee454
3 changed files with 12 additions and 34 deletions

View File

@ -165,7 +165,7 @@ found."
(goto-char (point-min))
(mu4e~fontify-cited)
(mu4e~fontify-signature)
(mu4e~view-make-urls-clickable)
(mu4e~view-activate-urls)
(mu4e~view-show-images-maybe msg)
(when (not embedded) (setq mu4e~view-message msg))
(mu4e-view-mode)
@ -646,20 +646,6 @@ FUNC should be a function taking two arguments:
"Major mode for viewing an e-mail message in mu4e."
(mu4e~view-mode-body))
(defun mu4e~view-browse-url-func (url)
"Return a function that executes `browse-url' with URL.
The browser that is called depends on
`browse-url-browser-function' and `browse-url-mailto-function'."
(save-match-data
(if (string-match "^mailto:" url)
(lambda ()
(interactive)
(browse-url-mail url))
(lambda ()
(interactive)
(browse-url url)))))
(defun mu4e~view-show-images-maybe (msg)
"Show attached images, if `mu4e-show-images' is non-nil."
(when (and (display-images-p) mu4e-view-show-images)