From: Lars Magne Ingebrigtsen Date: Sun, 2 Oct 2011 22:03:55 +0000 (+0000) Subject: shr.el (shr-tag-img): Add a space at the end of an ALT image text to make asynchronou... X-Git-Tag: emacs-pretest-24.0.91~221 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=64522086318c6fefcd591c1a562a289776b2737f;p=emacs.git shr.el (shr-tag-img): Add a space at the end of an ALT image text to make asynchronous adjacent image insertion work better. --- 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 @@ +2011-10-02 Lars Magne Ingebrigtsen + + * shr.el (shr-tag-img): Add a space at the end of an ALT image text to + make asynchronous adjacent image insertion work better. + 2011-09-27 Daiki Ueno * 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." (url-is-cached (shr-encode-url url))) (funcall shr-put-image-function (shr-get-image-data url) alt)) (t - (insert alt) + (insert alt " ") (when (and shr-ignore-cache (url-is-cached (shr-encode-url url))) (let ((file (url-cache-create-filename (shr-encode-url url)))) @@ -912,7 +912,7 @@ ones, in case fg and bg are nil." 'url-queue-retrieve 'url-retrieve) (shr-encode-url url) 'shr-image-fetched - (list (current-buffer) start (point-marker)) + (list (current-buffer) start (set-marker (make-marker) (1- (point)))) t))) (put-text-property start (point) 'keymap shr-map) (put-text-property start (point) 'shr-alt alt)