From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Magne Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: image-size Date: Thu, 27 Jun 2013 02:46:24 +0200 Message-ID: References: <837ghopy8a.fsf@gnu.org> <83zjukog7h.fsf@gnu.org> <83txksodgv.fsf@gnu.org> <83r4fwocqd.fsf@gnu.org> <83ppvgoaw9.fsf@gnu.org> <83mwqko9ge.fsf@gnu.org> <83k3loo66g.fsf@gnu.org> <2D9A8A78-829E-4AEC-BA3E-9409A1457053@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1372294011 8010 80.91.229.3 (27 Jun 2013 00:46:51 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 27 Jun 2013 00:46:51 +0000 (UTC) Cc: emacs-devel@gnu.org To: YAMAMOTO Mitsuharu Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Thu Jun 27 02:46:52 2013 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 1Us0MN-0003JL-V8 for ged-emacs-devel@m.gmane.org; Thu, 27 Jun 2013 02:46:52 +0200 Original-Received: from localhost ([::1]:58354 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us0MN-0005W0-Jr for ged-emacs-devel@m.gmane.org; Wed, 26 Jun 2013 20:46:51 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45554) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us0MG-0005Vb-Ef for emacs-devel@gnu.org; Wed, 26 Jun 2013 20:46:49 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Us0MB-0005Sw-Ap for emacs-devel@gnu.org; Wed, 26 Jun 2013 20:46:44 -0400 Original-Received: from hermes.netfonds.no ([80.91.224.195]:43005) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Us0MB-0005Ss-46 for emacs-devel@gnu.org; Wed, 26 Jun 2013 20:46:39 -0400 Original-Received: from cm-84.215.51.58.getinternet.no ([84.215.51.58] helo=stories.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1Us0Lw-0005Im-R8; Thu, 27 Jun 2013 02:46:24 +0200 Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwBAMAAAClLOS0AAAAJFBMVEXvfUn2m3Dec0e1YmQL BQiuU0ABAgapX2zPaUJaKSuoWV2uTDHVRXg9AAACZElEQVQ4jW2UP2vcQBDFR6lkrpFCmuBGiBQb /AFSG4TC4dpgSCsEIlWIsbhU8nI2A9uFIxdxtUP+NM5xmBH75fJmpZg7J487id3fzryd0UpU11W/ r0K1KkoCaPe06PtVP18vrqgqJ/Cm/RjAj9W6X7dXNF8dRiwA1i3A2SEIydr234i2XS8Q0F4+NW/b ftH+H6wDuFKQHpJfP6FvCj7sT39n6IaXT1LdYdY5a+weuHt3fsFWAf721V9w5714EetYPEA+gfMb Lyy8a6wxWMEW4O2i+nTBDstsXNSfc8Me8wCnLyvdh2fTHdV1oyZsrQ0ROu/FdK/Luv7KowAuASQk PhrK+r1aG86XGmFABDs58auyUcC5uaXTF5WxBluC+mFVeZSB8a2aGzE8FjZs5gAe5eyoKhojOQbs rB8651XWPdB815wgjxcHtEnjANg/0NlOzVkbwu46fT4CN4Ktc+gTxlGaON15F0ATW+2gKk3TE9yk g3lRNDEKD6YCMAu14nkgIjhAm2uAY7WwqGMEQX0GENwlDkAmMEQASQBWQSXBwM42CmCChd1yBIP3 vzEXImLU6kdzpxFhNUQkAGaJ16BxPJYQIihCbyTe4TA0xg/+fgpICCboewDaBZpS4X4s24wnYClC m9Ix3bFwZkcghIVJhEuUROlMhMIRbdyWCOuTZ+oRJTFANkVkCMEPQQlFM76P8+UjIIrhTM+ItjnF OImog2FOlN9TAAljhJbMvwAwExmAXCP1MgFx3NGUbVJoib4CoqMoSqZ5VI5PRjgXnckyegwYdxWe kp4rTGTZmFTfqKCyOFT5B54M2SKfdinmAAAAAElFTkSuQmCC X-Now-Playing: Alice Coltrane's _Eternity_: "Wisdom Eye" X-Hashcash: 1:23:130627:mituharu@math.s.chiba-u.ac.jp::w1STM7lG+dglOnEb:0000000000000000000000000000000057cL X-Hashcash: 1:23:130627:emacs-devel@gnu.org::QUvf8NOuWk+ULmzZ:00000000000000000000000000000000000000000154z0 In-Reply-To: (Lars Magne Ingebrigtsen's message of "Wed, 26 Jun 2013 14:04:57 +0200") User-Agent: Gnus/5.130008 (Ma Gnus v0.8) Emacs/24.3.50 (gnu/linux) X-MailScanner-ID: 1Us0Lw-0005Im-R8 MailScanner-NULL-Check: 1372898785.08456@BVneHGOB/ZOmkrydnFZF/Q X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.224.195 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 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-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:161120 Archived-At: Lars Magne Ingebrigtsen writes: > YAMAMOTO Mitsuharu writes: > >> Could you try this? It doesn't defer the allocation of Pixmap >> actually, but defers image data transfer by XPutImage (and also by >> XGetImage in the case of postprocessing) until the actual display >> happens. > > Great! This seems to work perfectly. Calling `image-size' over ssh is > now as fast as calling it with a local X; the decoded image is cached; > and transferring the image to X is postponed until it's actually > displayed. So I think this should be applied. This is not a part of the code that I'm extremely familiar with, but the patch seems fine to me. Does anybody have any objections to applying this? -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/