From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Dmitry Gutov Newsgroups: gmane.emacs.bugs Subject: bug#18195: 24.3.92; window-screen-lines is not accurate Date: Wed, 06 Aug 2014 15:55:02 +0400 Message-ID: <53E21796.4040505@yandex.ru> References: <86tx5r7l1j.fsf@yandex.ru> <53E097F7.5050407@gmx.at> <53E0ABF9.7070506@yandex.ru> <53E0AF08.50300@gmx.at> <53E0B0FB.3080203@yandex.ru> <53E0CC2A.7040801@gmx.at> <53E0D690.1030208@yandex.ru> <53E0E12A.3050204@gmx.at> 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 1407326188 29410 80.91.229.3 (6 Aug 2014 11:56:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Aug 2014 11:56:28 +0000 (UTC) To: martin rudalics , 18195@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 06 13:56: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 1XEzpM-0005SW-27 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Aug 2014 13:56:20 +0200 Original-Received: from localhost ([::1]:38179 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEzpL-0003gP-O2 for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Aug 2014 07:56:19 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41853) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEzpB-0003ed-JP for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2014 07:56:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XEzp4-0006lN-2Z for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2014 07:56:09 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53042) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XEzp3-0006lH-V5 for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2014 07:56:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XEzp3-0002hp-LU for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2014 07:56:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Dmitry Gutov Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Wed, 06 Aug 2014 11:56:01 +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.140732611910344 (code B ref 18195); Wed, 06 Aug 2014 11:56:01 +0000 Original-Received: (at 18195) by debbugs.gnu.org; 6 Aug 2014 11:55:19 +0000 Original-Received: from localhost ([127.0.0.1]:59985 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEzoN-0002gl-0g for submit@debbugs.gnu.org; Wed, 06 Aug 2014 07:55:19 -0400 Original-Received: from mail-lb0-f179.google.com ([209.85.217.179]:56372) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XEzoJ-0002gU-AT for 18195@debbugs.gnu.org; Wed, 06 Aug 2014 07:55:16 -0400 Original-Received: by mail-lb0-f179.google.com with SMTP id v6so1797652lbi.10 for <18195@debbugs.gnu.org>; Wed, 06 Aug 2014 04:55:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=sender:message-id:date:from:user-agent:mime-version:to:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=FIc8t4uiAJx6BWYdkhfjZfMO0/U5I3TwPG5ochB5wHM=; b=Bzr+D+7Ua1kvnE/QFJxwYacSA/ZAPxFdY675PBYFCkAdBVd/LDbrpjvCBi8BvR60ca GhLwkZVHx68gsbdjDtJ61zTwGueqAJg/J2DvweBPSyC7UzKSX38SQ0cMqZjMqcAiMZZI NXIILNYUmGw4CUrbWDxU2oPZS0g+Pg1YXTqfp2Ff3EjfMl6cttjA7H0iFg7U0yIT5cRU AcYA8oWCESMIPhs+PqxaphVDa2n9V7WWuqma0j9azDHS/9t8x2U9Zk4wKBI6jTcyUi4h rF2EVQMKK67Lr/elo5WYKSbLuv5x3t/A+DoLJAvBbqEcwA88mokVs9gyeevwU7r/FONs NGjA== X-Received: by 10.112.25.104 with SMTP id b8mr10171049lbg.95.1407326108784; Wed, 06 Aug 2014 04:55:08 -0700 (PDT) Original-Received: from [10.8.0.26] (v-2-eu19-d3962-07.webazilla.com. [78.140.151.7]) by mx.google.com with ESMTPSA id a5sm1133481lbw.21.2014.08.06.04.55.07 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Aug 2014 04:55:07 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <53E0E12A.3050204@gmx.at> 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:92173 Archived-At: On 08/05/2014 05:50 PM, martin rudalics wrote: > Overlays don't know about newlines. We're using a multiline overlay: it both spans several lines, and its `before-string' property contains a multiline string when it's "on". > I suppose the overlay starts at the > beginning of some line after text T and has as many characters as there > are in the text with height O. If you want to cover any text with the > overlay do that. Sorry, I don't understand. > IIUC you neither need pixels nor lines in the end result. You just want > to know whether a given overlay fits into a given window at a given > position. We don't have the overlay at that point in time yet: when it's created, it's constructed using the underlying buffer text, too. Being able to just show a rectangle would require some dedicated API, like Eli mentioned.