Kill the buffer anyway, and fix the bug in url-http.el instead.
authorLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 23 Jan 2011 23:54:14 +0000 (00:54 +0100)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Sun, 23 Jan 2011 23:54:14 +0000 (00:54 +0100)
lisp/ChangeLog
lisp/gnus-html.el
lisp/shr.el

index 8abb533..21fb2c0 100644 (file)
@@ -1,5 +1,10 @@
 2011-01-23  Lars Ingebrigtsen  <larsi@gnus.org>
 
+       * gnus-html.el (gnus-html-image-fetched): Kill the buffer anyway, and
+       fix the bug in url-http.el instead.
+
+       * shr.el (shr-image-fetched): Ditto.
+
        * shr.el (shr-image-fetched): Avoid having point move in the article
        buffer.
 
index 2e969b7..acc018f 100644 (file)
@@ -408,7 +408,8 @@ 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))))))))
+            (gnus-html-put-image data (car image) (cadr image)))))))
+  (kill-buffer (current-buffer)))
 
 (defun gnus-html-get-image-data (url)
   "Get image data for URL.
index badbcaf..75929b2 100644 (file)
@@ -467,7 +467,8 @@ redirects somewhere else."
                  (inhibit-read-only t))
              (delete-region start end)
              (goto-char start)
-             (shr-put-image data alt))))))))
+             (shr-put-image data alt)))))))
+  (kill-buffer (current-buffer)))
 
 (defun shr-put-image (data alt)
   (if (display-graphic-p)