mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
emacs: honour notmuch-show-text/html-blocked-images in w3m messages
When mm-text-html-renderer is set to 'w3m, the variable playing the role of a regular expression for blocked images is w3m-ignored-image-url-regexp. We bind it when the renderer is not 'shr.
This commit is contained in:
parent
3fc2e5f23b
commit
c1f542d68a
1 changed files with 3 additions and 1 deletions
|
@ -59,6 +59,7 @@
|
|||
(defvar shr-blocked-images)
|
||||
(defvar gnus-blocked-images)
|
||||
(defvar shr-content-function)
|
||||
(defvar w3m-ignored-image-url-regexp)
|
||||
|
||||
;;; Options
|
||||
|
||||
|
@ -823,7 +824,8 @@ will return nil if the CID is unknown or cannot be retrieved."
|
|||
(let ((mm-inline-text-html-with-w3m-keymap nil)
|
||||
;; FIXME: If we block an image, offer a button to load external
|
||||
;; images.
|
||||
(gnus-blocked-images notmuch-show-text/html-blocked-images))
|
||||
(gnus-blocked-images notmuch-show-text/html-blocked-images)
|
||||
(w3m-ignored-image-url-regexp notmuch-show-text/html-blocked-images))
|
||||
(notmuch-show-insert-part-*/* msg part content-type nth depth button))))
|
||||
|
||||
;;; Functions used by notmuch-show--insert-part-text/html-shr
|
||||
|
|
Loading…
Reference in a new issue