aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKatsumi Yamaoka2013-07-18 11:26:04 +0000
committerKatsumi Yamaoka2013-07-18 11:26:04 +0000
commitabd2f2a44e9225cdc89dc6643190dd13785bb48e (patch)
tree2a760392c7254ebb50b31f117523f79052522ed0
parent5e679a2cfdd8bc087dfd85fee252d8a4e5ed13c4 (diff)
downloademacs-abd2f2a44e9225cdc89dc6643190dd13785bb48e.tar.gz
emacs-abd2f2a44e9225cdc89dc6643190dd13785bb48e.zip
gnus-art.el (gnus-shr-put-image): Make it work as well for shr.el's that the old Emacs 24s bundle
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/gnus-art.el11
2 files changed, 13 insertions, 3 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index eade6273e95..c68013f6da3 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12013-07-18 Katsumi Yamaoka <yamaoka@jpl.org>
2
3 * gnus-art.el (gnus-shr-put-image): Make it work as well for shr.el's
4 that the old Emacs 24s bundle.
5
12013-07-10 David Engster <deng@randomsample.de> 62013-07-10 David Engster <deng@randomsample.de>
2 7
3 * gnus-start.el (gnus-clean-old-newsrc): Always remove 'unexist' marks 8 * gnus-start.el (gnus-clean-old-newsrc): Always remove 'unexist' marks
diff --git a/lisp/gnus/gnus-art.el b/lisp/gnus/gnus-art.el
index b41ff9c0550..304ac3da88c 100644
--- a/lisp/gnus/gnus-art.el
+++ b/lisp/gnus/gnus-art.el
@@ -6197,9 +6197,14 @@ Provided for backwards compatibility."
6197 6197
6198(defun gnus-shr-put-image (data alt &optional flags) 6198(defun gnus-shr-put-image (data alt &optional flags)
6199 "Put image DATA with a string ALT. Enable image to be deleted." 6199 "Put image DATA with a string ALT. Enable image to be deleted."
6200 (let ((image (shr-put-image data (propertize (or alt "*") 6200 (let ((image (if flags
6201 'gnus-image-category 'shr) 6201 (shr-put-image data (propertize (or alt "*")
6202 flags))) 6202 'gnus-image-category 'shr)
6203 flags)
6204 ;; Old `shr-put-image' doesn't take the optional `flags'
6205 ;; argument.
6206 (shr-put-image data (propertize (or alt "*")
6207 'gnus-image-category 'shr)))))
6203 (when image 6208 (when image
6204 (gnus-add-image 'shr image)))) 6209 (gnus-add-image 'shr image))))
6205 6210