unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Alan Mackenzie <acm@muc.de>
To: 51521@debbugs.gnu.org
Subject: bug#51521: Emacs-28 and Master. Unwanted display artifacts in multiple column tty displays.
Date: Sat, 30 Oct 2021 23:26:30 +0000	[thread overview]
Message-ID: <YX3Upm3nbztI+r7x@ACM> (raw)

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).





             reply	other threads:[~2021-10-30 23:26 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-10-30 23:26 Alan Mackenzie [this message]
2021-10-31  7:47 ` bug#51521: Emacs-28 and Master. Unwanted display artifacts in multiple column tty displays Eli Zaretskii
2021-10-31 10:03   ` Alan Mackenzie

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YX3Upm3nbztI+r7x@ACM \
    --to=acm@muc.de \
    --cc=51521@debbugs.gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).