From mboxrd@z Thu Jan  1 00:00:00 1970
Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail
From: Alan Mackenzie <acm@muc.de>
Newsgroups: gmane.emacs.bugs
Subject: bug#51521: Emacs-28 and Master. Unwanted display artifacts in
 multiple column tty displays.
Date: Sat, 30 Oct 2021 23:26:30 +0000
Message-ID: <YX3Upm3nbztI+r7x@ACM>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214";
	logging-data="13645"; mail-complaints-to="usenet@ciao.gmane.io"
To: 51521@debbugs.gnu.org
Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Sun Oct 31 01:27:11 2021
Return-path: <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org
Original-Received: from lists.gnu.org ([209.51.188.17])
	by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
	(Exim 4.92)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1mgxkl-0003Qv-Ac
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sun, 31 Oct 2021 01:27:11 +0200
Original-Received: from localhost ([::1]:60554 helo=lists1p.gnu.org)
	by lists.gnu.org with esmtp (Exim 4.90_1)
	(envelope-from <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>)
	id 1mgxkj-0002p3-Dc
	for geb-bug-gnu-emacs@m.gmane-mx.org; Sat, 30 Oct 2021 19:27:09 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59520)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1mgxkc-0002oa-Bc
 for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 19:27:02 -0400
Original-Received: from debbugs.gnu.org ([209.51.188.43]:47057)
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <Debian-debbugs@debbugs.gnu.org>)
 id 1mgxkc-0004o0-22
 for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 19:27:02 -0400
Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2)
 (envelope-from <Debian-debbugs@debbugs.gnu.org>) id 1mgxkb-0007wQ-Qu
 for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 19:27:01 -0400
X-Loop: help-debbugs@gnu.org
Resent-From: Alan Mackenzie <acm@muc.de>
Original-Sender: "Debbugs-submit" <debbugs-submit-bounces@debbugs.gnu.org>
Resent-CC: bug-gnu-emacs@gnu.org
Resent-Date: Sat, 30 Oct 2021 23:27:01 +0000
Resent-Message-ID: <handler.51521.B.163563640830503@debbugs.gnu.org>
Resent-Sender: help-debbugs@gnu.org
X-GNU-PR-Message: report 51521
X-GNU-PR-Package: emacs
X-Debbugs-Original-To: bug-gnu-emacs@gnu.org
Original-Received: via spool by submit@debbugs.gnu.org id=B.163563640830503
 (code B ref -1); Sat, 30 Oct 2021 23:27:01 +0000
Original-Received: (at submit) by debbugs.gnu.org; 30 Oct 2021 23:26:48 +0000
Original-Received: from localhost ([127.0.0.1]:58603 helo=debbugs.gnu.org)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <debbugs-submit-bounces@debbugs.gnu.org>)
 id 1mgxkO-0007vu-27
 for submit@debbugs.gnu.org; Sat, 30 Oct 2021 19:26:48 -0400
Original-Received: from lists.gnu.org ([209.51.188.17]:35728)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <acm@muc.de>) id 1mgxkM-0007vm-Ed
 for submit@debbugs.gnu.org; Sat, 30 Oct 2021 19:26:46 -0400
Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:59494)
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <acm@muc.de>) id 1mgxkM-0002o0-8h
 for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 19:26:46 -0400
Original-Received: from colin.muc.de ([193.149.48.1]:56275 helo=mail.muc.de)
 by eggs.gnu.org with smtp (Exim 4.90_1) (envelope-from <acm@muc.de>)
 id 1mgxkK-0004fb-9S
 for bug-gnu-emacs@gnu.org; Sat, 30 Oct 2021 19:26:45 -0400
Original-Received: (qmail 17654 invoked by uid 3782); 30 Oct 2021 23:26:30 -0000
Original-Received: from acm.muc.de (p4fe15ab1.dip0.t-ipconnect.de [79.225.90.177])
 (using STARTTLS) by colin.muc.de (tmda-ofmipd) with ESMTP;
 Sun, 31 Oct 2021 01:26:30 +0200
Original-Received: (qmail 5502 invoked by uid 1000); 30 Oct 2021 23:26:30 -0000
Content-Disposition: inline
X-Submission-Agent: TMDA/1.3.x (Ph3nix)
X-Primary-Address: acm@muc.de
Received-SPF: pass client-ip=193.149.48.1; envelope-from=acm@muc.de;
 helo=mail.muc.de
X-Spam_score_int: -18
X-Spam_score: -1.9
X-Spam_bar: -
X-Spam_report: (-1.9 / 5.0 requ) BAYES_00=-1.9, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-BeenThere: debbugs-submit@debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
X-BeenThere: bug-gnu-emacs@gnu.org
List-Id: "Bug reports for GNU Emacs,
 the Swiss army knife of text editors" <bug-gnu-emacs.gnu.org>
List-Unsubscribe: <https://lists.gnu.org/mailman/options/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=unsubscribe>
List-Archive: <https://lists.gnu.org/archive/html/bug-gnu-emacs>
List-Post: <mailto:bug-gnu-emacs@gnu.org>
List-Help: <mailto:bug-gnu-emacs-request@gnu.org?subject=help>
List-Subscribe: <https://lists.gnu.org/mailman/listinfo/bug-gnu-emacs>,
 <mailto:bug-gnu-emacs-request@gnu.org?subject=subscribe>
Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org
Original-Sender: "bug-gnu-emacs"
 <bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org>
Xref: news.gmane.io gmane.emacs.bugs:218645
Archived-At: <http://permalink.gmane.org/gmane.emacs.bugs/218645>

Hello, Emacs and Eli.

In the master and emacs 28 branches, on a Linux console or a maximised X
Window, do this:

(i) emacs -Q -nw
(ii) C-x 4 C-f <some file with plenty of blank lines> RET
(iii) M-> ; to end of buffer
(iv) Hold down <up> (or ? C-p).

As point passes the top of the window, this will cause the window to
scroll.  Notice that the divider between the left and right windows
loses glyphs - they gradually become replaced by spaces.  This is a bug.

Further observations:
(i) If point is moved to the left hand window with C-x o, the divider is
  displayed correctly again.
(ii) After (i), and moving point back to the right hand window, the bug
  cannot now be reproduced any more.
(iii) After (ii), move point to LH window and C-x 1, deleting the RH
  window.  C-x 4 b <file> RET to recreate the RH window.  The bug is
  apparent again.
(iv) The places the divider glyphs vanish correspond to blank lines in
  the buffer in the RH window.
(v) With three windows side by side, and the <file with blank lines> in
  the RH window, both dividers lose glyphs, largely but not entirely in
  synch with eachother.
(vi) The bug doesn't occur in a GUI session in X.  It also doesn't
  appear to happen in emacs -Q -nw when the window isn't maximised.

A git bisection shows that the following commit introduced the bug:

commit 10753bc6888c997c31408a3ec59df42a4bef0005
Author: Eli Zaretskii <eliz@gnu.org>
Date:   Tue Jul 6 20:11:51 2021 +0300

    Fix right-margin display on TTY frames

    * src/dispnew.c (prepare_desired_row, adjust_glyph_matrix): Adjust
    the glyph pointer of the right-margin area for all windows but the
    rightmost ones on TTY frames, to account for the border glyph.
    (Bug#48257)

 src/dispnew.c | 12 +++++++++++-
 1 file changed, 11 insertions(+), 1 deletion(-)

-- 
Alan Mackenzie (Nuremberg, Germany).