[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] /srv/bzr/emacs/trunk r102922: gnus-art.el (gnus-article-re
From: |
Katsumi Yamaoka |
Subject: |
[Emacs-diffs] /srv/bzr/emacs/trunk r102922: gnus-art.el (gnus-article-remove-images, gnus-article-show-images): Widen article buffer. |
Date: |
Fri, 21 Jan 2011 04:16:57 +0000 |
User-agent: |
Bazaar (2.0.3) |
------------------------------------------------------------
revno: 102922
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Fri 2011-01-21 04:16:57 +0000
message:
gnus-art.el (gnus-article-remove-images, gnus-article-show-images): Widen
article buffer.
modified:
lisp/gnus/ChangeLog
lisp/gnus/gnus-art.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog 2011-01-20 23:43:27 +0000
+++ b/lisp/gnus/ChangeLog 2011-01-21 04:16:57 +0000
@@ -1,3 +1,8 @@
+2011-01-21 Katsumi Yamaoka <address@hidden>
+
+ * gnus-art.el (gnus-article-remove-images, gnus-article-show-images):
+ Widen article buffer.
+
2011-01-20 Stefan Monnier <address@hidden>
* mm-util.el (mm-find-buffer-file-coding-system): Don't forget to kill
=== modified file 'lisp/gnus/gnus-art.el'
--- a/lisp/gnus/gnus-art.el 2011-01-20 23:43:27 +0000
+++ b/lisp/gnus/gnus-art.el 2011-01-21 04:16:57 +0000
@@ -2275,19 +2275,23 @@
"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.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Emacs-diffs] /srv/bzr/emacs/trunk r102922: gnus-art.el (gnus-article-remove-images, gnus-article-show-images): Widen article buffer.,
Katsumi Yamaoka <=