gnus-art.el (gnus-article-remove-images, gnus-article-show-images): Widen article buffer.
This commit is contained in:
parent
26d82c3ad3
commit
9695908dfa
2 changed files with 16 additions and 7 deletions
|
@ -1,3 +1,8 @@
|
|||
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.
|
||||
|
|
Loading…
Add table
Reference in a new issue