aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Magne Ingebrigtsen2011-10-02 22:03:55 +0000
committerKatsumi Yamaoka2011-10-02 22:03:55 +0000
commit64522086318c6fefcd591c1a562a289776b2737f (patch)
tree53c1cc942baf603f44428c6c8b3ca8f4c2c68d91
parent32c1fffd728cfed8427d144bf7c622257aad859f (diff)
downloademacs-64522086318c6fefcd591c1a562a289776b2737f.tar.gz
emacs-64522086318c6fefcd591c1a562a289776b2737f.zip
shr.el (shr-tag-img): Add a space at the end of an ALT image text to make asynchronous adjacent image insertion work better.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/shr.el4
2 files changed, 7 insertions, 2 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index a330d5c6be8..67a517753d2 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12011-10-02 Lars Magne Ingebrigtsen <larsi@gnus.org>
2
3 * shr.el (shr-tag-img): Add a space at the end of an ALT image text to
4 make asynchronous adjacent image insertion work better.
5
12011-09-27 Daiki Ueno <ueno@unixuser.org> 62011-09-27 Daiki Ueno <ueno@unixuser.org>
2 7
3 * plstore.el (plstore-select-keys, plstore-encrypt-to): Clarify 8 * plstore.el (plstore-select-keys, plstore-encrypt-to): Clarify
diff --git a/lisp/gnus/shr.el b/lisp/gnus/shr.el
index f49bbd69da3..ddf47f4ed14 100644
--- a/lisp/gnus/shr.el
+++ b/lisp/gnus/shr.el
@@ -901,7 +901,7 @@ ones, in case fg and bg are nil."
901 (url-is-cached (shr-encode-url url))) 901 (url-is-cached (shr-encode-url url)))
902 (funcall shr-put-image-function (shr-get-image-data url) alt)) 902 (funcall shr-put-image-function (shr-get-image-data url) alt))
903 (t 903 (t
904 (insert alt) 904 (insert alt " ")
905 (when (and shr-ignore-cache 905 (when (and shr-ignore-cache
906 (url-is-cached (shr-encode-url url))) 906 (url-is-cached (shr-encode-url url)))
907 (let ((file (url-cache-create-filename (shr-encode-url url)))) 907 (let ((file (url-cache-create-filename (shr-encode-url url))))
@@ -912,7 +912,7 @@ ones, in case fg and bg are nil."
912 'url-queue-retrieve 912 'url-queue-retrieve
913 'url-retrieve) 913 'url-retrieve)
914 (shr-encode-url url) 'shr-image-fetched 914 (shr-encode-url url) 'shr-image-fetched
915 (list (current-buffer) start (point-marker)) 915 (list (current-buffer) start (set-marker (make-marker) (1- (point))))
916 t))) 916 t)))
917 (put-text-property start (point) 'keymap shr-map) 917 (put-text-property start (point) 'keymap shr-map)
918 (put-text-property start (point) 'shr-alt alt) 918 (put-text-property start (point) 'shr-alt alt)