aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2010-09-04 00:30:49 +0000
committerKatsumi Yamaoka2010-09-04 00:30:49 +0000
commit25f28806d2f3a61986b3435e76d47d790b87342f (patch)
treef979016862556aaa2f36ceee1eebc5b1bc9d163b
parent28e44fbf620ce0a079e492b3927a28769b318764 (diff)
downloademacs-25f28806d2f3a61986b3435e76d47d790b87342f.tar.gz
emacs-25f28806d2f3a61986b3435e76d47d790b87342f.zip
gnus-html.el: Add the new command gnus-html-show-images.
-rw-r--r--doc/misc/ChangeLog5
-rw-r--r--doc/misc/gnus.texi8
-rw-r--r--lisp/gnus/ChangeLog2
-rw-r--r--lisp/gnus/gnus-html.el12
-rw-r--r--lisp/gnus/gnus-sum.el1
5 files changed, 28 insertions, 0 deletions
diff --git a/doc/misc/ChangeLog b/doc/misc/ChangeLog
index c97688438c6..a4a68336aa9 100644
--- a/doc/misc/ChangeLog
+++ b/doc/misc/ChangeLog
@@ -1,4 +1,9 @@
12010-09-03 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * gnus.texi (Article Display): Document gnus-html-show-images.
4
12010-09-02 Jan Djärv <jan.h.d@swipnet.se> 52010-09-02 Jan Djärv <jan.h.d@swipnet.se>
6
2 * cl.texi (Basic Setf): Remove x-get-cut-buffer and x-get-cutbuffer. 7 * cl.texi (Basic Setf): Remove x-get-cut-buffer and x-get-cutbuffer.
3 8
42010-09-01 Lars Magne Ingebrigtsen <larsi@gnus.org> 92010-09-01 Lars Magne Ingebrigtsen <larsi@gnus.org>
diff --git a/doc/misc/gnus.texi b/doc/misc/gnus.texi
index a8f379c5b1a..115a3548692 100644
--- a/doc/misc/gnus.texi
+++ b/doc/misc/gnus.texi
@@ -10351,6 +10351,14 @@ Piconify all news headers (i. e., @code{Newsgroups} and
10351Remove all images from the article buffer 10351Remove all images from the article buffer
10352(@code{gnus-article-remove-images}). 10352(@code{gnus-article-remove-images}).
10353 10353
10354@item W D W
10355@kindex W D W (Summary)
10356@findex gnus-html-show-images
10357If you're reading an @acronym{HTML} article rendered with
10358@code{gnus-article-html}, then you can insert any blocked images in
10359the buffer with this command.
10360(@code{gnus-html-show-images}).
10361
10354@end table 10362@end table
10355 10363
10356 10364
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index 8e593d72e65..922cef18b8f 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -3,6 +3,8 @@
3 * gnus-html.el (gnus-html-put-image): Allow images to be removed. 3 * gnus-html.el (gnus-html-put-image): Allow images to be removed.
4 (gnus-html-wash-tags): Add a new `i' command to insert images. 4 (gnus-html-wash-tags): Add a new `i' command to insert images.
5 (gnus-html-insert-image): New command and keystroke. 5 (gnus-html-insert-image): New command and keystroke.
6 (gnus-html-redisplay-with-images): New command and keystroke.
7 (gnus-html-show-images): Renamed command.
6 8
7 * gnus-agent.el (gnus-agent-auto-agentize-methods): Change the default 9 * gnus-agent.el (gnus-agent-auto-agentize-methods): Change the default
8 so that nnimap methods aren't agentized by default. There's apparently 10 so that nnimap methods aren't agentized by default. There's apparently
diff --git a/lisp/gnus/gnus-html.el b/lisp/gnus/gnus-html.el
index a42cd9309b5..c0e0ed73391 100644
--- a/lisp/gnus/gnus-html.el
+++ b/lisp/gnus/gnus-html.el
@@ -362,6 +362,18 @@ fit these criteria."
362 url blocked-images)) 362 url blocked-images))
363 ret)) 363 ret))
364 364
365(defun gnus-html-show-images ()
366 "Show any images that are in the HTML-rendered article buffer.
367This only works if the article in question is HTML."
368 (interactive)
369 (gnus-with-article-buffer
370 (let ((overlays (overlays-in (point-min) (point-max)))
371 overlay images)
372 (while (setq overlay (pop overlays))
373 (when (overlay-get overlay 'gnus-image)
374 (push (overlay-get overlay 'gnus-image) images)))
375 (gnus-html-schedule-image-fetching (current-buffer) images))))
376
365;;;###autoload 377;;;###autoload
366(defun gnus-html-prefetch-images (summary) 378(defun gnus-html-prefetch-images (summary)
367 (let (blocked-images urls) 379 (let (blocked-images urls)
diff --git a/lisp/gnus/gnus-sum.el b/lisp/gnus/gnus-sum.el
index f1ea15dff9b..37cf4a11472 100644
--- a/lisp/gnus/gnus-sum.el
+++ b/lisp/gnus/gnus-sum.el
@@ -2110,6 +2110,7 @@ increase the score of each group you read."
2110 "d" gnus-article-display-face 2110 "d" gnus-article-display-face
2111 "s" gnus-treat-smiley 2111 "s" gnus-treat-smiley
2112 "D" gnus-article-remove-images 2112 "D" gnus-article-remove-images
2113 "W" gnus-html-show-images
2113 "f" gnus-treat-from-picon 2114 "f" gnus-treat-from-picon
2114 "m" gnus-treat-mail-picon 2115 "m" gnus-treat-mail-picon
2115 "n" gnus-treat-newsgroups-picon) 2116 "n" gnus-treat-newsgroups-picon)