From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#18195: 24.3.92; window-screen-lines is not accurate Date: Tue, 05 Aug 2014 17:09:10 +0300 Message-ID: <83tx5rowop.fsf@gnu.org> References: <86tx5r7l1j.fsf@yandex.ru> <53E097F7.5050407@gmx.at> <53E0ABF9.7070506@yandex.ru> <53E0AF08.50300@gmx.at> <831tsvqc3c.fsf@gnu.org> <53E0E2E5.7050306@gmx.at> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1407247827 11336 80.91.229.3 (5 Aug 2014 14:10:27 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 5 Aug 2014 14:10:27 +0000 (UTC) Cc: 18195@debbugs.gnu.org, dgutov@yandex.ru To: martin rudalics Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Aug 05 16:10:20 2014 Return-path: Envelope-to: geb-bug-gnu-emacs@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 1XEfRS-00070V-NZ for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 16:10:18 +0200 Original-Received: from localhost ([::1]:59640 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEfRS-0004Ah-8T for geb-bug-gnu-emacs@m.gmane.org; Tue, 05 Aug 2014 10:10:18 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41510) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEfRJ-00049P-PX for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 10:10:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEfRC-0007dP-VM for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 10:10:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:51907) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEfRC-0007dA-S0 for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 10:10:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XEfRC-0002BE-Gk for bug-gnu-emacs@gnu.org; Tue, 05 Aug 2014 10:10:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 05 Aug 2014 14:10:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18195 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18195-submit@debbugs.gnu.org id=B18195.14072477508288 (code B ref 18195); Tue, 05 Aug 2014 14:10:02 +0000 Original-Received: (at 18195) by debbugs.gnu.org; 5 Aug 2014 14:09:10 +0000 Original-Received: from localhost ([127.0.0.1]:58843 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEfQL-00029Z-OB for submit@debbugs.gnu.org; Tue, 05 Aug 2014 10:09:10 -0400 Original-Received: from mtaout23.012.net.il ([80.179.55.175]:57390) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEfQJ-00028q-2A for 18195@debbugs.gnu.org; Tue, 05 Aug 2014 10:09:08 -0400 Original-Received: from conversion-daemon.a-mtaout23.012.net.il by a-mtaout23.012.net.il (HyperSendmail v2007.08) id <0N9U009007AAX100@a-mtaout23.012.net.il> for 18195@debbugs.gnu.org; Tue, 05 Aug 2014 17:09:00 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout23.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0N9U009HP7B0W120@a-mtaout23.012.net.il>; Tue, 05 Aug 2014 17:09:00 +0300 (IDT) In-reply-to: <53E0E2E5.7050306@gmx.at> X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:92141 Archived-At: > Date: Tue, 05 Aug 2014 15:57:57 +0200 > From: martin rudalics > CC: dgutov@yandex.ru, 18195@debbugs.gnu.org > > > He can't: we currently don't expose enough information for Lisp > > programs to perform layout. E.g., the metrics of glyphs and lines > > that use arbitrary fonts and display images are not easily available > > on the Lisp level, and neither are dimensions and line counts of > > arbitrary regions of the screen (although you could write some clunky > > Lisp to do the latter). Likewise with dimensions of text in overlays > > and display properties, and with images. > > > > This was never supposed to be needed, and thus was never designed and > > implemented. If we want to allow such jobs from Lisp, we need to > > close these gaps. > > Why would `window-text-pixel-size' fail to provide that? Because there's no way of calculating the pixel size of arbitrary text (in this case: the list of completion candidates to be popped up overlaid on the buffer text), except if that text is displayed in some window. > It might be a bit clumsy to work with because you have to > temporarily show another buffer in its window That _is_ the problem. Momentarily flashing some text in some window is not my idea of a good application. It simply looks like a bug.