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: Sun, 01 Feb 2015 05:36:16 +0200 Message-ID: <83wq42i9qn.fsf@gnu.org> References: <874mrb1t62.fsf_-_@building.gnus.org> <87vbjrl49k.fsf@violet.siamics.net> <8361bqogah.fsf@gnu.org> <87k306pfi9.fsf@building.gnus.org> <87egqekrd7.fsf@building.gnus.org> <877fw53eat.fsf@building.gnus.org> <877fw4zsdv.fsf@building.gnus.org> <831tmcn4k4.fsf@gnu.org> <87386szq1w.fsf@building.gnus.org> <83wq44ljm9.fsf@gnu.org> <87vbjowlqv.fsf@building.gnus.org> <83oapglbx6.fsf@gnu.org> <83lhkkl23i.fsf@gnu.org> <83bnlgkl1s.fsf@gnu.org> <837fw3l7uz.fsf@gnu.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1422761820 30522 80.91.229.3 (1 Feb 2015 03:37:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 1 Feb 2015 03:37:00 +0000 (UTC) Cc: larsi@gnus.org, emacs-devel@gnu.org To: Stefan Monnier Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Feb 01 04:36:59 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 1YHlLE-0005cn-Ve for ged-emacs-devel@m.gmane.org; Sun, 01 Feb 2015 04:36:57 +0100 Original-Received: from localhost ([::1]:43447 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHlLE-0000IJ-55 for ged-emacs-devel@m.gmane.org; Sat, 31 Jan 2015 22:36:56 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41411) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHlKy-0000He-Nw for emacs-devel@gnu.org; Sat, 31 Jan 2015 22:36:44 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YHlKt-0003Tu-Pr for emacs-devel@gnu.org; Sat, 31 Jan 2015 22:36:40 -0500 Original-Received: from mtaout22.012.net.il ([80.179.55.172]:41363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YHlKt-0003To-HZ for emacs-devel@gnu.org; Sat, 31 Jan 2015 22:36:35 -0500 Original-Received: from conversion-daemon.a-mtaout22.012.net.il by a-mtaout22.012.net.il (HyperSendmail v2007.08) id <0NJ200D00PR3MH00@a-mtaout22.012.net.il> for emacs-devel@gnu.org; Sun, 01 Feb 2015 05:36:34 +0200 (IST) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout22.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NJ200D4UQ0XHH40@a-mtaout22.012.net.il>; Sun, 01 Feb 2015 05:36:34 +0200 (IST) In-reply-to: X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.172 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:182157 Archived-At: > From: Stefan Monnier > Cc: larsi@gnus.org, emacs-devel@gnu.org > Date: Sat, 31 Jan 2015 15:33:11 -0500 > > > Lars doesn't want to compute pixel sizes to repeat what the display > > engine does. He wants to do that to implement stuff that the display > > engine cannot, at least currently (if it ever should). > > AFAICT he wants to compute the pixel length of a chunk of text. > I don't see why we can't export to Elisp a C function that does that > re-using the same machinery used by the redisplay (and by vertical-motion). Those functions are already exposed, and that's exactly what Lars is doing, AFAIU. Or maybe I don't understand which functions you want to expose, so please elaborate.