From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Wed, 18 Feb 2015 05:45:13 +0200 Message-ID: <83ioez6fxy.fsf@gnu.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> <87r3toaugq.fsf@building.gnus.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1424231141 13909 80.91.229.3 (18 Feb 2015 03:45:41 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 18 Feb 2015 03:45:41 +0000 (UTC) Cc: rudalics@gmx.at, emacs-devel@gnu.org To: Lars Ingebrigtsen Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Feb 18 04:45: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 1YNvZs-0007nq-7Z for ged-emacs-devel@m.gmane.org; Wed, 18 Feb 2015 04:45:32 +0100 Original-Received: from localhost ([::1]:48238 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNvZr-0000wO-DH for ged-emacs-devel@m.gmane.org; Tue, 17 Feb 2015 22:45:31 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55909) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNvZU-0000nM-JQ for emacs-devel@gnu.org; Tue, 17 Feb 2015 22:45:12 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YNvZR-000186-14 for emacs-devel@gnu.org; Tue, 17 Feb 2015 22:45:08 -0500 Original-Received: from mtaout29.012.net.il ([80.179.55.185]:47910) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YNvZQ-00014w-QC for emacs-devel@gnu.org; Tue, 17 Feb 2015 22:45:04 -0500 Original-Received: from conversion-daemon.mtaout29.012.net.il by mtaout29.012.net.il (HyperSendmail v2007.08) id <0NJY00300723A400@mtaout29.012.net.il> for emacs-devel@gnu.org; Wed, 18 Feb 2015 05:41:01 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by mtaout29.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJY00KGG7KD6080@mtaout29.012.net.il>; Wed, 18 Feb 2015 05:41:01 +0200 (IST) In-reply-to: <87r3toaugq.fsf@building.gnus.org> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 80.179.55.185 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:183228 Archived-At: > From: Lars Ingebrigtsen > Cc: rudalics@gmx.at, emacs-devel@gnu.org > Date: Wed, 18 Feb 2015 12:17:57 +1100 > > 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. I beg to differ.