From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Lars Ingebrigtsen Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Sat, 07 Feb 2015 00:02:09 +1100 Message-ID: <87fvaji46m.fsf@building.gnus.org> References: <83oapglbx6.fsf@gnu.org> <83lhkkl23i.fsf@gnu.org> <83bnlgkl1s.fsf@gnu.org> <837fw3l7uz.fsf@gnu.org> <54CD4B27.4080201@gmx.at> <874mr6qvi5.fsf@building.gnus.org> <87sieqpfxh.fsf@building.gnus.org> <54CDE908.7050908@gmx.at> <87ioflq0dz.fsf@building.gnus.org> <54CE2187.9070003@gmx.at> <54CE4D8A.5040201@gmx.at> <87zj8wy79g.fsf@building.gnus.org> <87k2zxynvk.fsf@building.gnus.org> <54D33A2C.1060603@gmx.at> <837fvwfigd.fsf@gnu.org> <54D46D0B.1050402@gmx.at> <877fvvjr9c.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1423227908 19759 80.91.229.3 (6 Feb 2015 13:05:08 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2015 13:05:08 +0000 (UTC) Cc: Eli Zaretskii , monnier@iro.umontreal.ca, emacs-devel@gnu.org To: martin rudalics Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 06 14:04:56 2015 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 1YJiad-0005XP-MH for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2015 14:04:55 +0100 Original-Received: from localhost ([::1]:48174 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJiad-0001QL-3x for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2015 08:04:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:48752) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJiaK-0001MY-05 for emacs-devel@gnu.org; Fri, 06 Feb 2015 08:04:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJiaG-0007wk-79 for emacs-devel@gnu.org; Fri, 06 Feb 2015 08:04:35 -0500 Original-Received: from smtp.syd.comcen.com.au ([203.23.236.77]:2006) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJiaB-0007qb-Gy; Fri, 06 Feb 2015 08:04:27 -0500 Original-Received: from building.gnus.org ([27.96.197.126]) by smtp.syd.comcen.com.au (8.13.4/8.12.9) with ESMTP id t16D2E0j032206; Sat, 7 Feb 2015 00:02:16 +1100 (EST) In-Reply-To: <877fvvjr9c.fsf@building.gnus.org> (Lars Ingebrigtsen's message of "Fri, 06 Feb 2015 20:58:23 +1100") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-comcen-MailScanner-Information: Please contact the ISP for more information X-comcen-MailScanner: Found to be clean X-comcen-MailScanner-SpamCheck: not spam, SpamAssassin (not cached, score=0.125, required 4, AWL 0.02, BAYES_50 0.00, RDNS_NONE 0.10) X-comcen-MailScanner-From: larsi@gnus.org X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 203.23.236.77 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:182522 Archived-At: Lars Ingebrigtsen writes: >> We can do that. But it's hardly cheaper than >> >> (save-window-excursion >> (set-window-buffer nil ...) >> (window-text-pixel-size ...) >> ...) >> >> especially when packing multiple `window-text-pixel-size' calls into >> the same excursion. > > Ok; I can try doing that and see what the results are. With complex table-based layouts, this was unbearably slow. I'll try to hack up a version of the function that returns the max-width in a region and see whether that gives acceptable results. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/