From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: martin rudalics Newsgroups: gmane.emacs.devel Subject: Re: Pixel-based display functions Date: Fri, 06 Feb 2015 08:28:15 +0100 Message-ID: <54D46D0F.4010400@gmx.at> References: <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> <83lhkhiq8t.fsf@gnu.org> <54CE54A3.1020707@gmx.at> <838ughilmo.fsf@gnu.org> <54CE6BD2.8000402@gmx.at> <8361bliin0.fsf@gnu.org> <83386piiby.fsf@gnu.org> <87oap9yoti.fsf@building.gnus.org> <874mqzvnwo.fsf@building.gnus.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1423207798 13221 80.91.229.3 (6 Feb 2015 07:29:58 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 6 Feb 2015 07:29:58 +0000 (UTC) Cc: Eli Zaretskii , emacs-devel@gnu.org To: Lars Ingebrigtsen , Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Fri Feb 06 08:29:57 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 1YJdMT-0007Sv-GQ for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2015 08:29:57 +0100 Original-Received: from localhost ([::1]:47006 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJdMS-0001Lt-QX for ged-emacs-devel@m.gmane.org; Fri, 06 Feb 2015 02:29:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:33901) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJdM6-0001Fl-Ty for emacs-devel@gnu.org; Fri, 06 Feb 2015 02:29:39 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YJdM3-0004Cg-PD for emacs-devel@gnu.org; Fri, 06 Feb 2015 02:29:34 -0500 Original-Received: from mout.gmx.net ([212.227.15.15]:56417) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YJdM3-0004CY-GX; Fri, 06 Feb 2015 02:29:31 -0500 Original-Received: from [188.22.41.214] ([188.22.41.214]) by mail.gmx.com (mrgmx002) with ESMTPSA (Nemesis) id 0MWBpJ-1Y8oWO0SKn-00XOiz; Fri, 06 Feb 2015 08:28:25 +0100 In-Reply-To: <874mqzvnwo.fsf@building.gnus.org> X-Provags-ID: V03:K0:w74ZsbZK5dvEOXXiF5QWfawGz/5EgHdPePGuzgW6gxOwUEZ1Oxw tK+gHVuiFG3Wjq38xeuI1snu+YA2/ws74WRw1VenzsdHMxVyQJ2I8pI6PlpdbWIriMi0q+z NIeZQEWkmnQrI/lL5Q/GQOVY6NjYO9Y4LmNvCOauh6PelIbAhd+AklXF5n1HoKzfQ3Oe4iq Tu9WjNFuftsefigneNGPQ== X-UI-Out-Filterresults: notjunk:1; X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [generic] X-Received-From: 212.227.15.15 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:182499 Archived-At: > I wonder whether a faster interface > would be to have a version of `window-text-pixel-size' that returns a > vector of glyph sizes. Then that vector could be used both for going to > a column (by just adding until we get to the required pixel count) as > well as for computing the displayed width of each line. Isn't what you want a function that stops at some whitespace preceding non-whitespace that won't fit within some specified limit? martin