[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] master e7c813e 2/2: Load w3m in Gnus if required
From: |
Lars Ingebrigtsen |
Subject: |
[Emacs-diffs] master e7c813e 2/2: Load w3m in Gnus if required |
Date: |
Thu, 12 Apr 2018 15:35:16 -0400 (EDT) |
branch: master
commit e7c813e912de9c11438cf91b1fde20d75764697e
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>
Load w3m in Gnus if required
* lisp/gnus/gnus-art.el (gnus-article-show-images): Ensure that
w3m is loaded if the user requests that we use it.
---
lisp/gnus/gnus-art.el | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index b1e23a4..74915a8 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -2217,7 +2217,9 @@ This only works if the article in question is HTML."
(save-restriction
(widen)
(if (eq mm-text-html-renderer 'w3m)
- (w3m-toggle-inline-images)
+ (progn
+ (require 'w3m)
+ (w3m-toggle-inline-images))
(dolist (region (gnus-find-text-property-region (point-min) (point-max)
'image-displayer))
(cl-destructuring-bind (start end function) region