From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#26445: 26.0.50; Scroll margin and cursor movement working incorrectly when scrolling over different height lines Date: Fri, 14 Apr 2017 10:06:41 +0300 Message-ID: <83tw5rh3i6.fsf@gnu.org> References: <624e8d20-8e9f-f164-d9e8-b81659eec2f7@web.de> <83wpaogkqr.fsf@gnu.org> <858e2c55-9e4c-2293-3070-c091372bb8b2@web.de> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Trace: blaine.gmane.org 1492153632 23661 195.159.176.226 (14 Apr 2017 07:07:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Fri, 14 Apr 2017 07:07:12 +0000 (UTC) Cc: 26445@debbugs.gnu.org, npostavs@users.sourceforge.net To: Alexander Miller Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Fri Apr 14 09:07:08 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyvJz-000653-VO for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Apr 2017 09:07:08 +0200 Original-Received: from localhost ([::1]:52127 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyvK5-0002cD-OL for geb-bug-gnu-emacs@m.gmane.org; Fri, 14 Apr 2017 03:07:13 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41584) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyvJx-0002aE-H3 for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 03:07:07 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyvJu-0006Hl-9A for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 03:07:05 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:48173) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cyvJu-0006Hc-4u for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 03:07:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cyvJu-0006vn-0A for bug-gnu-emacs@gnu.org; Fri, 14 Apr 2017 03:07: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: Fri, 14 Apr 2017 07:07:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 26445 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 26445-submit@debbugs.gnu.org id=B26445.149215358826598 (code B ref 26445); Fri, 14 Apr 2017 07:07:01 +0000 Original-Received: (at 26445) by debbugs.gnu.org; 14 Apr 2017 07:06:28 +0000 Original-Received: from localhost ([127.0.0.1]:46372 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyvJM-0006uw-MG for submit@debbugs.gnu.org; Fri, 14 Apr 2017 03:06:28 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:50445) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cyvJL-0006uj-Ak for 26445@debbugs.gnu.org; Fri, 14 Apr 2017 03:06:27 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cyvJC-00064V-OW for 26445@debbugs.gnu.org; Fri, 14 Apr 2017 03:06:21 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:44017) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cyvJC-00064O-Lc; Fri, 14 Apr 2017 03:06:18 -0400 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:1671 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cyvJB-0000v5-T0; Fri, 14 Apr 2017 03:06:18 -0400 In-reply-to: <858e2c55-9e4c-2293-3070-c091372bb8b2@web.de> (message from Alexander Miller on Thu, 13 Apr 2017 23:07:48 +0200) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.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" Xref: news.gmane.org gmane.emacs.bugs:131560 Archived-At: > Cc: 26445@debbugs.gnu.org > From: Alexander Miller > Date: Thu, 13 Apr 2017 23:07:48 +0200 > > On 13/04/17 22:05, Noam Postavsky wrote: > > Yes, maybe the answer to this bug is just not to set > > scroll-conservatively so high then. > That does help with the height difference introduced by thinly boxed > text. Unfortunately there are > still other cases where where a scroll stutter still remains, caused by > unicode symbols. > For example using prettify-symbols-mode to replace -> with ⭢ or configs > for programs like > polybar which naturally contain a host of characters like    🔇 ⏭. That depends on what font you have installed that's used to display those characters. It is best to have fonts of approximately the same height. > I guess if you guys say it cannot be reasonably done I'll consider > getting rid of my margin altogether, There's no need to get rid of margins, as I think the problem you describe is purely aesthetic, and quite expected when you have lines of different height. Why does it bother you so much? > though I'm still curious why there's no problem when the cursor is at > the very start of the line. Because the window layout begins at the first screen line, and the y-coordinate of a screen line is its top edge. So the display engine can always position the first screen line exactly, whereas where the last screen line ends depends on what is in-between, and the scroll margin at the end of the window forces the last pixel of the point's line to be above the margin. I also think that if you produce text where lines have more than just 2 different heights, you will see a similar problem while scrolling up as well. > Then there's also the second part the bug report - the cursor switching > columns when scrolling. That's not a bug: the button-face line is slightly longer than the lines in the default face, and scrolling attempts to preserve the x-coordinate of point, not the column (because the same column could be at very different x-coordinate due to fonts, faces, inline images, etc.). You can see what's going on if you put the cursor on a boxed-text line, then scroll: you will see a small jitter of the cursor in the horizontal direction.