From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Michael Heerdegen Newsgroups: gmane.emacs.devel Subject: Re: iimage.el and the size of the images Date: Tue, 03 May 2016 16:41:08 +0200 Message-ID: <87r3dj4323.fsf@web.de> References: <878tzr8gqm.fsf@mat.ucm.es> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: ger.gmane.org 1462286642 15488 80.91.229.3 (3 May 2016 14:44:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 3 May 2016 14:44:02 +0000 (UTC) Cc: Lars Ingebrigtsen To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue May 03 16:43:46 2016 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1axbX5-0003O7-UZ for ged-emacs-devel@m.gmane.org; Tue, 03 May 2016 16:42:40 +0200 Original-Received: from localhost ([::1]:41623 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axbX2-00078z-0K for ged-emacs-devel@m.gmane.org; Tue, 03 May 2016 10:42:36 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41494) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axbWs-0006vr-VS for emacs-devel@gnu.org; Tue, 03 May 2016 10:42:33 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1axbWh-0003TR-6L for emacs-devel@gnu.org; Tue, 03 May 2016 10:42:21 -0400 Original-Received: from plane.gmane.org ([80.91.229.3]:47738) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1axbWg-0003Q4-W6 for emacs-devel@gnu.org; Tue, 03 May 2016 10:42:15 -0400 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1axbWB-0002bw-9T for emacs-devel@gnu.org; Tue, 03 May 2016 16:41:43 +0200 Original-Received: from dslb-094-217-122-112.094.217.pools.vodafone-ip.de ([94.217.122.112]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 May 2016 16:41:43 +0200 Original-Received: from michael_heerdegen by dslb-094-217-122-112.094.217.pools.vodafone-ip.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 03 May 2016 16:41:43 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 41 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: dslb-094-217-122-112.094.217.pools.vodafone-ip.de User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.93 (gnu/linux) Cancel-Lock: sha1:NVf+I5F42+iKprVGKuZJ6XXmcnI= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: "Emacs-devel" Xref: news.gmane.org gmane.emacs.devel:203542 Archived-At: Uwe Brauer writes: > I just learn about iimage.el, which is now part of GNU emacs core. I > like it quite a lot, the only thing which I find a bit inconvenient on > my 12 inch Laptop is the size of the images displayed. I did not find > any variable in which the size of images could be changed. > The author's address does not work anymore, so I looked at the code it > seems that the essential part is this: > (if arg > (add-text-properties (match-beginning 0) (match-end 0) > `(display ,(create-image file) > ^^^^^ > modification-hooks > (iimage-modification-hook))) Lars Ingebrigtsen has been working in that area recently. He installed some patches that made scaling displayed images very easy (in the master branch AFAIK). Lars, do your patches affect iimage.el as well - or should they? > However > ,---- > | max-image-size is a variable defined in ‘C source code’. > | Its value is 10.0 > `---- > > So I cannot change that value easily. Why not? Doesn't `setq' change the value? However, I'm not sure what this variable really means (I don't understand the docstring). Michael.