emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] /srv/bzr/emacs/trunk r105985: shr.el (shr-tag-img): Add a


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r105985: shr.el (shr-tag-img): Add a space at the end of an ALT image text to make asynchronous adjacent image insertion work better.
Date: Sun, 02 Oct 2011 22:03:55 +0000
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 105985
author: Lars Magne Ingebrigtsen <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Sun 2011-10-02 22:03:55 +0000
message:
  shr.el (shr-tag-img): Add a space at the end of an ALT image text to make 
asynchronous adjacent image insertion work better.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/shr.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2011-09-28 09:03:55 +0000
+++ b/lisp/gnus/ChangeLog       2011-10-02 22:03:55 +0000
@@ -1,3 +1,8 @@
+2011-10-02  Lars Magne Ingebrigtsen  <address@hidden>
+
+       * 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  <address@hidden>
 
        * plstore.el (plstore-select-keys, plstore-encrypt-to): Clarify

=== modified file 'lisp/gnus/shr.el'
--- a/lisp/gnus/shr.el  2011-09-26 21:59:47 +0000
+++ b/lisp/gnus/shr.el  2011-10-02 22:03:55 +0000
@@ -901,7 +901,7 @@
               (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 @@
               '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)


reply via email to

[Prev in Thread] Current Thread [Next in Thread]