diff options
| author | Katsumi Yamaoka | 2011-01-21 04:16:57 +0000 |
|---|---|---|
| committer | Katsumi Yamaoka | 2011-01-21 04:16:57 +0000 |
| commit | 9695908dfa075b863b4a02cfd119690bc2aa7476 (patch) | |
| tree | 4289dde2687fad6d26c8802e7702333140b9bf1d | |
| parent | 26d82c3ad3000b1f8befad731c54fa2378937f96 (diff) | |
| download | emacs-9695908dfa075b863b4a02cfd119690bc2aa7476.tar.gz emacs-9695908dfa075b863b4a02cfd119690bc2aa7476.zip | |
gnus-art.el (gnus-article-remove-images, gnus-article-show-images): Widen article buffer.
| -rw-r--r-- | lisp/gnus/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/gnus/gnus-art.el | 18 |
2 files changed, 16 insertions, 7 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index c9feb09680b..137e70aa778 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2011-01-21 Katsumi Yamaoka <yamaoka@jpl.org> | ||
| 2 | |||
| 3 | * gnus-art.el (gnus-article-remove-images, gnus-article-show-images): | ||
| 4 | Widen article buffer. | ||
| 5 | |||
| 1 | 2011-01-20 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2011-01-20 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * mm-util.el (mm-find-buffer-file-coding-system): Don't forget to kill | 8 | * mm-util.el (mm-find-buffer-file-coding-system): Don't forget to kill |
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el index 280914d0f09..e6627b0f854 100644 --- a/lisp/gnus/gnus-art.el +++ b/lisp/gnus/gnus-art.el | |||
| @@ -2275,19 +2275,23 @@ unfolded." | |||
| 2275 | "Remove all images from the article buffer." | 2275 | "Remove all images from the article buffer." |
| 2276 | (interactive) | 2276 | (interactive) |
| 2277 | (gnus-with-article-buffer | 2277 | (gnus-with-article-buffer |
| 2278 | (dolist (elem gnus-article-image-alist) | 2278 | (save-restriction |
| 2279 | (gnus-delete-images (car elem))))) | 2279 | (widen) |
| 2280 | (dolist (elem gnus-article-image-alist) | ||
| 2281 | (gnus-delete-images (car elem)))))) | ||
| 2280 | 2282 | ||
| 2281 | (defun gnus-article-show-images () | 2283 | (defun gnus-article-show-images () |
| 2282 | "Show any images that are in the HTML-rendered article buffer. | 2284 | "Show any images that are in the HTML-rendered article buffer. |
| 2283 | This only works if the article in question is HTML." | 2285 | This only works if the article in question is HTML." |
| 2284 | (interactive) | 2286 | (interactive) |
| 2285 | (gnus-with-article-buffer | 2287 | (gnus-with-article-buffer |
| 2286 | (dolist (region (gnus-find-text-property-region (point-min) (point-max) | 2288 | (save-restriction |
| 2287 | 'image-displayer)) | 2289 | (widen) |
| 2288 | (destructuring-bind (start end function) region | 2290 | (dolist (region (gnus-find-text-property-region (point-min) (point-max) |
| 2289 | (funcall function (get-text-property start 'image-url) | 2291 | 'image-displayer)) |
| 2290 | start end))))) | 2292 | (destructuring-bind (start end function) region |
| 2293 | (funcall function (get-text-property start 'image-url) | ||
| 2294 | start end)))))) | ||
| 2291 | 2295 | ||
| 2292 | (defun gnus-article-treat-fold-newsgroups () | 2296 | (defun gnus-article-treat-fold-newsgroups () |
| 2293 | "Unfold folded message headers. | 2297 | "Unfold folded message headers. |