emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image):


From: Katsumi Yamaoka
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image): Allow viewing large images.
Date: Mon, 13 Feb 2012 03:33:11 +0000
User-agent: Bazaar (2.3.1)

------------------------------------------------------------
revno: 107264
author: Lars Ingebrigtsen <address@hidden>
committer: Katsumi Yamaoka <address@hidden>
branch nick: trunk
timestamp: Mon 2012-02-13 03:33:11 +0000
message:
  shr.el (shr-rescale-image): Allow viewing large images.
modified:
  lisp/gnus/ChangeLog
  lisp/gnus/shr.el
=== modified file 'lisp/gnus/ChangeLog'
--- a/lisp/gnus/ChangeLog       2012-02-12 22:20:48 +0000
+++ b/lisp/gnus/ChangeLog       2012-02-13 03:33:11 +0000
@@ -1,3 +1,7 @@
+2012-02-13  Lars Ingebrigtsen  <address@hidden>
+
+       * shr.el (shr-rescale-image): Allow viewing large images.
+
 2012-02-12  Lars Ingebrigtsen  <address@hidden>
 
        * nnml.el (nnml-request-compact-group): Delete the marks file after

=== modified file 'lisp/gnus/shr.el'
--- a/lisp/gnus/shr.el  2012-02-11 22:13:29 +0000
+++ b/lisp/gnus/shr.el  2012-02-13 03:33:11 +0000
@@ -557,7 +557,8 @@
     (insert alt)))
 
 (defun shr-rescale-image (data)
-  (let ((image (create-image data nil t :ascent 100)))
+  (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


reply via email to

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