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#25666: Screen rendering bug Date: Sun, 12 Feb 2017 21:49:02 +0200 Message-ID: <83y3xb1975.fsf@gnu.org> References: <83poir3xtt.fsf@gnu.org> <87inofl7x0.fsf@users.sourceforge.net> <83d1en2w6b.fsf@gnu.org> <87fujjl49x.fsf@users.sourceforge.net> <83a89r2ro2.fsf@gnu.org> <87d1enkzfm.fsf@users.sourceforge.net> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1486929017 10963 195.159.176.226 (12 Feb 2017 19:50:17 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Feb 2017 19:50:17 +0000 (UTC) Cc: 25666@debbugs.gnu.org, fredde1994@gmail.com To: npostavs@users.sourceforge.net Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 12 20:50:12 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 1cd09y-0002TP-PF for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Feb 2017 20:50:10 +0100 Original-Received: from localhost ([::1]:53258 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cd0A4-0003zZ-EJ for geb-bug-gnu-emacs@m.gmane.org; Sun, 12 Feb 2017 14:50:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34810) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cd09w-0003y1-MM for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2017 14:50:09 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cd09r-0002Xt-Qe for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2017 14:50:08 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39186) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cd09r-0002Xp-N6 for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2017 14:50:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cd09r-0000Ol-GH for bug-gnu-emacs@gnu.org; Sun, 12 Feb 2017 14:50:03 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 12 Feb 2017 19:50:03 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25666 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: confirmed Original-Received: via spool by 25666-submit@debbugs.gnu.org id=B25666.14869289451422 (code B ref 25666); Sun, 12 Feb 2017 19:50:03 +0000 Original-Received: (at 25666) by debbugs.gnu.org; 12 Feb 2017 19:49:05 +0000 Original-Received: from localhost ([127.0.0.1]:37378 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd08v-0000Mr-Dn for submit@debbugs.gnu.org; Sun, 12 Feb 2017 14:49:05 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:43740) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cd08t-0000MO-NA for 25666@debbugs.gnu.org; Sun, 12 Feb 2017 14:49:03 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cd08n-0002Tz-Ey for 25666@debbugs.gnu.org; Sun, 12 Feb 2017 14:48:58 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:49983) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cd08f-0002Sn-MZ; Sun, 12 Feb 2017 14:48:49 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:3994 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1cd08e-0003Cx-Qg; Sun, 12 Feb 2017 14:48:49 -0500 In-reply-to: <87d1enkzfm.fsf@users.sourceforge.net> (npostavs@users.sourceforge.net) 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:129281 Archived-At: > From: npostavs@users.sourceforge.net > Cc: 25666@debbugs.gnu.org, fredde1994@gmail.com > Date: Sun, 12 Feb 2017 13:59:41 -0500 > > >> > I see this with nlinum-mode as well. My terminal is PuTTY (which > >> > emulates xterm). > >> > >> Ah, this depends on how high the terminal is. With an 80x32 terminal I > >> see it with nlinum-mode as well. I think it's just a question of > >> whether the first scroll reaches high enough line numbers to trigger a > >> margin width adjustment. > > > > Not sure what you mean by that. In my experiments, the margin starts > > at 3 columns, and stays at 3 columns. There's no adjustment. > > With nlinum-mode it starts at 2 columns for me. With a terminal 80x49 > or higher, it widens before the bug happens. Most of my experiments were with 80x38 terminal, where the margin never widens during the first 2 scrolls. And I see the problem with nlinum-mode with that configuration. I don't think margin widening has anything to do with the problem. It's enough to have a post-command-hook that changes overlays, I think. But that's a guess, although it's based on the fact that the problematic window doesn't need to be redrawn at all and doesn't need any margin width adjustment. The selected window, which is where the margin width might change, is updated correctly.