merge from no gnus
authorLars Ingebrigtsen <larsi@gnus.org>
Mon, 13 Feb 2012 02:44:26 +0000 (03:44 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Mon, 13 Feb 2012 02:44:26 +0000 (03:44 +0100)
lisp/ChangeLog
lisp/shr.el

index 3f17771..3eee67f 100644 (file)
@@ -1,3 +1,7 @@
+2012-02-13  Lars Ingebrigtsen  <larsi@gnus.org>
+
+       * shr.el (shr-rescale-image): Allow viewing large images.
+
 2012-02-12  Lars Ingebrigtsen  <larsi@gnus.org>
 
        * nnml.el (nnml-request-compact-group): Delete the marks file after
index 7815845..9a66dd0 100644 (file)
@@ -612,10 +612,9 @@ size, and full-buffer size."
        image)
     (insert alt)))
 
-(defun shr-rescale-image (data &optional force)
-  "Rescale DATA, if too big, to fit the current buffer.
-If FORCE, rescale the image anyway."
-  (let ((image (create-image data nil t :ascent 100)))
+(defun shr-rescale-image (data)
+  (let* ((max-image-size 0)
+        (image (create-image data nil t :ascent 100)))
     (if (or (not (fboundp 'imagemagick-types))
            (not (get-buffer-window (current-buffer))))
        image