all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Paul Eggert <eggert@cs.ucla.edu>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: Katsumi Yamaoka <yamaoka@jpl.org>,
	Stefan Monnier <monnier@IRO.UMontreal.CA>,
	emacs-devel@gnu.org
Subject: Re: [Emacs-diffs] /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image): Allow viewing large images.
Date: Tue, 14 Feb 2012 07:56:28 -0800	[thread overview]
Message-ID: <4F3A842C.5020907@cs.ucla.edu> (raw)
In-Reply-To: <87haytfp0u.fsf@gnus.org>

On 02/14/2012 06:49 AM, Lars Ingebrigtsen wrote:
> I think the limit should be set to something that gives as little
> problems to real-world usage as realistic.  6.0 is too small, nil is
> unresponsible, and 60.0 is probably too large.  10.0?

10.0 would be fine, I think, not too large for older desktops with
big displays.  The current value of 6.0 was established in 2005,
and the typical ratio of RAM to display size for older machines
has probably grown by a factor of (10/6)**2 since then.

But it should be 10.0 everywhere, no?  Not just in Gnus.  That is,
shouldn't the change be something like this?

=== modified file 'lisp/gnus/shr.el'
--- lisp/gnus/shr.el	2012-02-13 11:25:56 +0000
+++ lisp/gnus/shr.el	2012-02-14 15:54:44 +0000
@@ -557,8 +557,7 @@
     (insert alt)))
 
 (defun shr-rescale-image (data)
-  (let* ((max-image-size nil)
-	 (image (create-image data nil t :ascent 100)))
+  (let ((image (create-image data nil t :ascent 100)))
     (if (or (not (fboundp 'imagemagick-types))
 	    (not (get-buffer-window (current-buffer))))
 	image

=== modified file 'src/image.c'
--- src/image.c	2012-02-07 03:46:18 +0000
+++ src/image.c	2012-02-14 15:54:07 +0000
@@ -976,7 +976,7 @@
 
 static void free_image (struct frame *f, struct image *img);
 
-#define MAX_IMAGE_SIZE 6.0
+#define MAX_IMAGE_SIZE 10.0
 /* Allocate and return a new image structure for image specification
    SPEC.  SPEC has a hash value of HASH.  */
 




  reply	other threads:[~2012-02-14 15:56 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <E1RwnLm-0007NV-Lm@vcs.savannah.gnu.org>
2012-02-13 13:15 ` [Emacs-diffs] /srv/bzr/emacs/trunk r107264: shr.el (shr-rescale-image): Allow viewing large images Stefan Monnier
2012-02-13 19:57   ` Andy Moreton
2012-02-13 20:03     ` Lars Ingebrigtsen
2012-02-13 20:01   ` [Emacs-diffs] " Lars Ingebrigtsen
2012-02-13 20:29     ` Paul Eggert
2012-02-13 20:33       ` Lars Ingebrigtsen
2012-02-13 20:41         ` Ted Zlatanov
2012-02-15  6:26           ` Chong Yidong
2012-02-15 13:40             ` Ted Zlatanov
2012-02-14  8:20         ` Paul Eggert
2012-02-14 14:49           ` Lars Ingebrigtsen
2012-02-14 15:56             ` Paul Eggert [this message]
2012-02-14 18:26               ` Lars Ingebrigtsen
2012-02-15  6:42                 ` Chong Yidong
2012-02-15  6:27               ` Chong Yidong
2012-02-14 17:43         ` Stefan Monnier
2012-02-13 21:24     ` Stefan Monnier

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4F3A842C.5020907@cs.ucla.edu \
    --to=eggert@cs.ucla.edu \
    --cc=emacs-devel@gnu.org \
    --cc=larsi@gnus.org \
    --cc=monnier@IRO.UMontreal.CA \
    --cc=yamaoka@jpl.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.