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 22:02:51 +0400 Message-ID: <53E26DCB.5070904@yandex.ru> 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> <83tx5rowop.fsf@gnu.org> <53E0E665.1000206@gmx.at> <83ppgfow0p.fsf@gnu.org> <53E0EC6C.7020504@gmx.at> <83oavzotxz.fsf@gnu.org> <53E0FC15.4060502@gmx.at> <83lhr2q0nt.fsf@gnu.org> <53E1F846.2040105@gmx.at> <83ha1pptrd.fsf@gnu.org> <53E23E91.5070802@yandex.ru> <83d2cdpox4.fsf@gnu.org> <53E25744.7090603@yandex.ru> <834mxppm42.fsf@gnu.org> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1407348269 1854 80.91.229.3 (6 Aug 2014 18:04:29 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 6 Aug 2014 18:04:29 +0000 (UTC) Cc: 18195@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Wed Aug 06 20:04:22 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 1XF5ZV-0008TZ-PM for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Aug 2014 20:04:22 +0200 Original-Received: from localhost ([::1]:40376 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF5ZV-0004dZ-Cy for geb-bug-gnu-emacs@m.gmane.org; Wed, 06 Aug 2014 14:04:21 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57229) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF5ZL-0004V2-9s for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2014 14:04:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XF5ZC-0008EE-Kh for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2014 14:04:11 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53737) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XF5ZC-0008EA-I5 for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2014 14:04:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XF5ZB-0007QQ-UQ for bug-gnu-emacs@gnu.org; Wed, 06 Aug 2014 14:04:02 -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 18:04: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.140734818828457 (code B ref 18195); Wed, 06 Aug 2014 18:04:01 +0000 Original-Received: (at 18195) by debbugs.gnu.org; 6 Aug 2014 18:03:08 +0000 Original-Received: from localhost ([127.0.0.1]:60677 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XF5YJ-0007Ou-AV for submit@debbugs.gnu.org; Wed, 06 Aug 2014 14:03:08 -0400 Original-Received: from mail-la0-f47.google.com ([209.85.215.47]:55856) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XF5YG-0007OQ-Dc for 18195@debbugs.gnu.org; Wed, 06 Aug 2014 14:03:05 -0400 Original-Received: by mail-la0-f47.google.com with SMTP id mc6so2520424lab.20 for <18195@debbugs.gnu.org>; Wed, 06 Aug 2014 11:02:58 -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:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=4b2VC2K4SE6rZs3jWlBJii3eZ6E5+Y1U3sQ/f9cN1cY=; b=gvLJKewBBti7dDmn1eIxpXVmy3TwHyciSE88FYiVrTg4BasbKPvxDVe6hrJJPj6FTO X1Y034OhB0V4dPFwpy0bVQjvcaQGNFi6gIU0KM4tpiQ/BSePay+L+FGgEAbd+23GdvKS 0bnQU6SLTyA/pirlruUcu0h8v77hyF54uM+MiS4kPGlIm0MMGgBdj5BDUYe6fhib4aev FpNWxfpPvNu1NBf5NNcGZkrvibugLATIK9ZBUo5BUvyphLgPxsDcvsUuEPlZ2mHFzwjq hnySuqwPJN3NW+Ot7LIYDiyaTjI5zmectlEVtF5TOZvEnGcfez1emIuUlhntu6SsiUAe kKnw== X-Received: by 10.112.255.36 with SMTP id an4mr12027977lbd.31.1407348178372; Wed, 06 Aug 2014 11:02:58 -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 go8sm2343718lbc.8.2014.08.06.11.02.56 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 06 Aug 2014 11:02:57 -0700 (PDT) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.0 In-Reply-To: <834mxppm42.fsf@gnu.org> 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:92210 Archived-At: On 08/06/2014 09:24 PM, Eli Zaretskii wrote: > But that will break if the buffer text has other display properties, > because Emacs doesn't support display strings on display strings. > IOW, this solution only works for relatively simple text in the > buffer. Multiple overlays aren't much easier to work with: you can't position them in the middle of a piece of text that's on `display' property, can't position them after the end of the buffer or overlapping the `line-prefix' value. And if the desired column is in the middle of a multiple-width character like \t, you're forced to do unnatural things with it anyway. > And what do you do with line-prefix and wrap-prefix? The former is incorporated into the "replaced" text and set to "" on the overlay; the latter, so far, has been ignored. > That's really crazy design (no offense)! I didn't design it personally, just fixed some corner cases. But it has its advantages, see above. For example, otherwise I'm having hard time imagining what to do if the target column is inside the line-prefix.