]> git.eshelyaron.com Git - emacs.git/commitdiff
Load w3m in Gnus if required
authorLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2018 19:34:37 +0000 (21:34 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 12 Apr 2018 19:34:37 +0000 (21:34 +0200)
* 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

index b1e23a47ffb7e54ef056c98997bb4cdce55623f9..74915a8cda90272ffebde46cd1c1d3de6ec48fc8 100644 (file)
@@ -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