Don't kill the temporary buffer after being called.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 23 Jan 2011 22:35:12 +0000 (23:35 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 23 Jan 2011 22:35:12 +0000 (23:35 +0100)
It's apparently being killed by url.el, and killing it made point move
to end-of-buffer in a random buffer.

lisp/ChangeLog
lisp/gnus-html.el

index 38f7adf..6a1b4e4 100644 (file)
@@ -1,3 +1,9 @@
+2011-01-23  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * gnus-html.el (gnus-html-image-fetched): Don't kill the temporary
+       buffer after being called.  It's apparently being killed by url.el, and
+       killing it made point move to end-of-buffer in a random buffer.
+
 2011-01-23  Julien Danjou  <julien@danjou.info>
 
        * mm-decode.el (mm-inline-media-tests): Change text/org to text/x-org.
index acc018f..2e969b7 100644 (file)
@@ -408,8 +408,7 @@ Use ALT-TEXT for the image string."
       (let ((data (buffer-substring (point) (point-max))))
         (with-current-buffer buffer
           (let ((inhibit-read-only t))
-            (gnus-html-put-image data (car image) (cadr image)))))))
-  (kill-buffer (current-buffer)))
+            (gnus-html-put-image data (car image) (cadr image))))))))
 
 (defun gnus-html-get-image-data (url)
   "Get image data for URL.