From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Alexander Miller Newsgroups: gmane.emacs.bugs Subject: bug#26445: 26.0.50; Scroll margin and cursor movement working incorrectly when scrolling over different height lines Date: Tue, 11 Apr 2017 18:50:55 +0200 Message-ID: <624e8d20-8e9f-f164-d9e8-b81659eec2f7@web.de> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1491929534 2168 195.159.176.226 (11 Apr 2017 16:52:14 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 11 Apr 2017 16:52:14 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0 To: 26445@debbugs.gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Apr 11 18:52:09 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 1cxz1U-0000P5-OA for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Apr 2017 18:52:08 +0200 Original-Received: from localhost ([::1]:40289 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxz1a-0005Vy-Pq for geb-bug-gnu-emacs@m.gmane.org; Tue, 11 Apr 2017 12:52:14 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42803) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxz1T-0005RG-MH for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 12:52:08 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxz1O-0003I1-Pp for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 12:52:07 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:44989) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxz1O-0003Hv-MD for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 12:52:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cxz1O-0004OJ-Fs for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 12:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Alexander Miller Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 11 Apr 2017 16:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 26445 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: X-Debbugs-Original-To: bug-gnu-emacs@gnu.org Original-Received: via spool by submit@debbugs.gnu.org id=B.149192947416817 (code B ref -1); Tue, 11 Apr 2017 16:52:02 +0000 Original-Received: (at submit) by debbugs.gnu.org; 11 Apr 2017 16:51:14 +0000 Original-Received: from localhost ([127.0.0.1]:43187 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxz0c-0004NB-0X for submit@debbugs.gnu.org; Tue, 11 Apr 2017 12:51:14 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:51329) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cxz0b-0004Mx-77 for submit@debbugs.gnu.org; Tue, 11 Apr 2017 12:51:13 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxz0V-0002qf-0a for submit@debbugs.gnu.org; Tue, 11 Apr 2017 12:51:08 -0400 Original-Received: from lists.gnu.org ([2001:4830:134:3::11]:44218) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cxz0U-0002qZ-TY for submit@debbugs.gnu.org; Tue, 11 Apr 2017 12:51:06 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42269) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cxz0T-0004mY-EQ for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 12:51:06 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cxz0O-0002nW-Jm for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 12:51:05 -0400 Original-Received: from mout.web.de ([212.227.17.11]:57965) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cxz0O-0002mY-68 for bug-gnu-emacs@gnu.org; Tue, 11 Apr 2017 12:51:00 -0400 Original-Received: from [192.168.1.5] ([134.3.25.9]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0Lx7Ab-1c0YmX2wsD-016fOE for ; Tue, 11 Apr 2017 18:50:56 +0200 X-Provags-ID: V03:K0:D8sbPdX4GUvYMdRlJMDMcXYS8D2m1m+jVj47PTQBUhC0ACQnfEp BeHLsxglhXatb9uzDy2IyCFqgRrSiMMIAPgk6TSXoagNT4VhGdiBBQPml2aSsW4tWCJv5FE TIQFA17wgVZQxQokedbimSOFfp77dvAA6WMNysmsGN7pBtx0yFmf4vc/OIJp5qnx27LcBOn a8M8jjUHp4tTOJLBOyU7Q== X-UI-Out-Filterresults: notjunk:1;V01:K0:i8/QMND0fbc=:DV9FtqQ8QShaib7D03L4sq BydaP62SkMAa3YHMI54/URcMF0fWjaT5OX2/AMUk62YlMoa/NYwJ+gzWQ9n/AJKChXwiT+yKe DBhDmgqa2PmwtifhbsauuNS2wgm0vr/3IB/F0jQWH56MJG2JRlniMyyvZpVpqxT1nTUE6Uu6V /yFmLoVggGiVBeGRPl7tKR40ENzpVCc1LtEgm7GlHCREaHM3ErqzPNKFKaV16W1jYL3fIWmyz EL+OL3q4c8EfjuC08tF2SbBHhLitOLEleBT+WdG3aMN0V1D6DxYQdPkPimwhbnjNxnh3rKYe+ 9TOuahvdMHClvZ0o6SKAdLY2UMXtIodIaYboAkSsDff9M8o7WiXafh1WHN14KuTvl+CpE/z1K Bx+K1LGqN+15dz2kucMLh1svFNVVFyknKId6zpC84+NkoJvOTKUZS/SgZjR0Z6pvQrqhJlqAV ynEAxHamka1zATyUtmO8+QQYqTyN0zb9WEq8ZUXbL1SGSTp8WgtOV9J+MZzm51bNVdll10Nsb 6JLz3MuznwpVICR/1rRE+DXHyMZROJJocMc76WTCIQVwnTZb7NysmL4CqEL9u1NmHTxGCE7yl tCAC7nHY3+9uiEO7f/4QT7dlxqsLHPcIinkrfrkjDhRF3eWVTG9FSqaedMBQ2QDmRfW0mHVE9 6EXrv9LqQzxZqutDZzoJ+5TpGwMnGUAvjfcP65r471luO5WRecCsJmd19dqpSB2+DuWWRXcMb f6TszvtKdlUOpQ1gVbzE5Fv+09eLCuu91SPeI2VHNSOj42CnMEyf/yMSYr6agUQH5WXbBs8K X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x 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:131472 Archived-At: This is probably a continuation of bug#25792. The issue is that scrolling downwards with a scroll-margin has the cursor jumping again - this time the issue is caused by different height lines. This does not simply mean being inside a buffer where some lines are fontified to use a different height attribute than others. The stutter already occurs due to the miniscule height differences introduced by box or over- and underline face attributes. The following bits of code can reproduce the issue in emacs -q: * (custom-set-faces `(button ((t (:box "#ffffff" :underline nil :overline nil :background nil :foreground "#ffffff"))))) * (setq scroll-margin 10 scroll-conservatively 101) * (defun maketext () (interactive) (dotimes (i 1000) (insert (format "\ntext %s\n" i)) (insert-text-button (format "text %s" i)))) * (maketext) Scrolling down in this text induces the same stutter as in the previous bug. Strangely enough the issue only occurs when the cursor is in a column other than the very first. Only scrolling downwards is affected, at least in a way I was able to reproduce it in emacs -q. I also do have the same issue with upwards scrolling in org-agenda buffers when running a heavily modified spacemacs, with a theme that makes heavy use of boxed and different height text, so it's difficult to say where things start exactly. The second, maybe wholly unrelated, part is the cursor's column movement. This time scrolling in either direction is affected. To reproduce put the cursor at the very end of a line containing unboxed text and scroll down or up. The cursor will move to the previous column on every boxed line and move back again for unboxed lines. In GNU Emacs 26.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.10) of 2017-04-10 built on a-laptop Repository revision: 3ccd0ff1064a2836c379b13c2d5f4b11c5da1f88 Windowing system distributor 'The X.Org Foundation