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: Wed, 18 Feb 2015 12:17:57 +1100 Message-ID: <87r3toaugq.fsf@building.gnus.org> References: <83386piiby.fsf@gnu.org> <87oap9yoti.fsf@building.gnus.org> <874mqzvnwo.fsf@building.gnus.org> <83h9uzeb4a.fsf@gnu.org> <87bnl7jrr7.fsf@building.gnus.org> <831tm3dt8u.fsf@gnu.org> <87k2zvgj4d.fsf@building.gnus.org> <83siejcahb.fsf@gnu.org> <83sieiar6i.fsf@gnu.org> <83oap5c480.fsf@gnu.org> <87d25lc3xu.fsf@building.gnus.org> <877fvtc2qj.fsf@building.gnus.org> <83wq3s9rmr.fsf@gnu.org> <878ug72064.fsf@building.gnus.org> <838ug79h3x.fsf@gnu.org> <87egpytlrk.fsf@building.gnus.org> <83d25h938i.fsf@gnu.org> <87r3txqajk.fsf@building.gnus.org> <83bnl078jr.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1424222330 14573 80.91.229.3 (18 Feb 2015 01:18:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 01:18:50 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Eli Zaretskii Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 18 02:18:33 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 1YNtHd-0008E4-DG for ged-emacs-devel@m.gmane.org; Wed, 18 Feb 2015 02:18:33 +0100 Original-Received: from localhost ([::1]:48028 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNtHc-0004mM-Qv for ged-emacs-devel@m.gmane.org; Tue, 17 Feb 2015 20:18:32 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38741) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNtHY-0004mH-Qe for emacs-devel@gnu.org; Tue, 17 Feb 2015 20:18:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNtHV-0006ED-I3 for emacs-devel@gnu.org; Tue, 17 Feb 2015 20:18:28 -0500 Original-Received: from hermes.netfonds.no ([80.91.224.195]:37898) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNtHV-0006E0-BF; Tue, 17 Feb 2015 20:18:25 -0500 Original-Received: from 77.17.13.246.tmi.telenormobil.no ([77.17.13.246] helo=building.gnus.org) by hermes.netfonds.no with esmtpsa (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.72) (envelope-from ) id 1YNtHC-00042L-1m; Wed, 18 Feb 2015 02:18:07 +0100 In-Reply-To: <83bnl078jr.fsf@gnu.org> (Eli Zaretskii's message of "Wed, 11 Feb 2015 17:49:12 +0200") User-Agent: Gnus/5.130012 (Ma Gnus v0.12) Emacs/25.0.50 (gnu/linux) X-MailScanner-ID: 1YNtHC-00042L-1m MailScanner-NULL-Check: 1424827087.7393@OVV0gNOFhlGSApU8jeLKjA 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:183222 Archived-At: Eli Zaretskii writes: >> > Well, you insert those lines into the buffer yourself, right? Can you >> > find the longest line while you are at it, and insert only it? >> > AFAICS, that's the only way of making window-text-pixel-size do its >> > job faster: by making the region FROM..TO it needs to traverse >> > smaller. >> >> Well, I don't know how long the line is (in pixels) in the first >> place. Only calling `window-text-pixel-size' will tell me, right? > > No, I meant the longest in characters. The line longest in characters doesn't really say much about what line is longest in pixels. -- (domestic pets only, the antidote for overdose, milk.) bloggy blog http://lars.ingebrigtsen.no/