Commit 9695908d authored by Katsumi Yamaoka's avatar Katsumi Yamaoka
Browse files

gnus-art.el (gnus-article-remove-images, gnus-article-show-images): Widen article buffer.

parent 26d82c3a
2011-01-21 Katsumi Yamaoka <yamaoka@jpl.org>
* gnus-art.el (gnus-article-remove-images, gnus-article-show-images):
Widen article buffer.
2011-01-20 Stefan Monnier <monnier@iro.umontreal.ca>
 
* mm-util.el (mm-find-buffer-file-coding-system): Don't forget to kill
......
......@@ -2275,19 +2275,23 @@ unfolded."
"Remove all images from the article buffer."
(interactive)
(gnus-with-article-buffer
(dolist (elem gnus-article-image-alist)
(gnus-delete-images (car elem)))))
(save-restriction
(widen)
(dolist (elem gnus-article-image-alist)
(gnus-delete-images (car elem))))))
(defun gnus-article-show-images ()
"Show any images that are in the HTML-rendered article buffer.
This only works if the article in question is HTML."
(interactive)
(gnus-with-article-buffer
(dolist (region (gnus-find-text-property-region (point-min) (point-max)
'image-displayer))
(destructuring-bind (start end function) region
(funcall function (get-text-property start 'image-url)
start end)))))
(save-restriction
(widen)
(dolist (region (gnus-find-text-property-region (point-min) (point-max)
'image-displayer))
(destructuring-bind (start end function) region
(funcall function (get-text-property start 'image-url)
start end))))))
(defun gnus-article-treat-fold-newsgroups ()
"Unfold folded message headers.
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment