diff options
| author | Lars Ingebrigtsen | 2018-04-12 21:34:37 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2018-04-12 21:34:37 +0200 |
| commit | e7c813e912de9c11438cf91b1fde20d75764697e (patch) | |
| tree | 2d06219f7ddf6a6871d17fbda8720db0e3c21245 | |
| parent | 271d8510c42d3f416324ad0e2fed3df2e50e02a4 (diff) | |
| download | emacs-e7c813e912de9c11438cf91b1fde20d75764697e.tar.gz emacs-e7c813e912de9c11438cf91b1fde20d75764697e.zip | |
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.
| -rw-r--r-- | lisp/gnus/gnus-art.el | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index b1e23a47ffb..74915a8cda9 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." | |||
| 2217 | (save-restriction | 2217 | (save-restriction |
| 2218 | (widen) | 2218 | (widen) |
| 2219 | (if (eq mm-text-html-renderer 'w3m) | 2219 | (if (eq mm-text-html-renderer 'w3m) |
| 2220 | (w3m-toggle-inline-images) | 2220 | (progn |
| 2221 | (require 'w3m) | ||
| 2222 | (w3m-toggle-inline-images)) | ||
| 2221 | (dolist (region (gnus-find-text-property-region (point-min) (point-max) | 2223 | (dolist (region (gnus-find-text-property-region (point-min) (point-max) |
| 2222 | 'image-displayer)) | 2224 | 'image-displayer)) |
| 2223 | (cl-destructuring-bind (start end function) region | 2225 | (cl-destructuring-bind (start end function) region |