GNU bug report logs - #68314
30.0.50; incorrect redisplay of contents of current line

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: rms@HIDDEN; dated Mon, 8 Jan 2024 03:46:02 UTC; Maintainer for emacs is bug-gnu-emacs@HIDDEN.

Message received at 68314 <at> debbugs.gnu.org:


Received: (at 68314) by debbugs.gnu.org; 8 Jan 2024 12:37:28 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon Jan 08 07:37:27 2024
Received: from localhost ([127.0.0.1]:35380 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rMosh-0003Mg-H8
	for submit <at> debbugs.gnu.org; Mon, 08 Jan 2024 07:37:27 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10]:48172)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <eliz@HIDDEN>) id 1rMosd-0003MQ-91
 for 68314 <at> debbugs.gnu.org; Mon, 08 Jan 2024 07:37:25 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>) id 1rMosR-0006QY-PV
 for 68314 <at> debbugs.gnu.org; Mon, 08 Jan 2024 07:37:11 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=nOG5GVzVBK+QAiUC2j20BzDK/s6CA4GyWooTWd7pgtY=; b=mTYfqy5r4yIk
 COLI/jJhcCITnMlFObaAJic7Wn9X0xTVAgscp0y8pE9q6elK+MsgJu70vQJe1dvPnOsC+7w+dHeYX
 ArK7YPU0QwW2ZFcG4inodSNQ4WAlWgBj9b7x7KaL1IyX8WWWQR36IHE7YBRgW2LvJ+S63cVVNxJU7
 pCFj2Njf7s/DrCvajEJah1GpSACkmjCXqwLdPJUPGUrgaWk14v+EY/4w1/dz8E3qqpWqgJ9Q3/pLf
 xipu90oA/eluMQqaiQXqnC0oYiZMhB6p8e6N/PP9l0/4ueUhggGvIp26B/VaaMWRFJ7BwcmuFGMl/
 uU12uN41ai6r4FBJr6j5dA==;
Date: Mon, 08 Jan 2024 14:36:57 +0200
Message-Id: <83cyucq9w6.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: rms@HIDDEN
In-Reply-To: <E1rMgZP-0001Ey-QU@HIDDEN> (message from Richard
 Stallman on Sun, 07 Jan 2024 22:44:59 -0500)
Subject: Re: bug#68314: 30.0.50;
 incorrect redisplay of contents of current line
References: <E1rMgZP-0001Ey-QU@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 68314
Cc: 68314 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> From: Richard Stallman <rms@HIDDEN>
> Date: Sun, 07 Jan 2024 22:44:59 -0500
> 
> 
> and found that the `e' was missing only on the screen -- the buffer
> was correct.  Therefore I typed DEL.
> 
> This bug in redisplay has been happening every few minutes this
> morning.  I did not notice it happen yesterday, which surprises me
> now.
> 
> This example is the simplest of those I have looked at recent-keys
> for.  It has NOTHING unusual!

It is hard for me to believe that there's such a fundamental problem
in redisplay.  My suggestion is to use open-termscript to record what
the display code sends to the screen, and when the problem happens
again, look for the stuff you miss on the screen in the termscript
file.  Then we will know whether the problem is that redisplay didn't
send the correct commands to the screen or that the commands were sent
correctly, but were not executed correctly by the terminal driver.

> I have a suspicion.
> 
> I get tiny pauses even in typing ordinary input, as if something
> time-consuming were running frequently between commands.
> 
> Those tiny pauses could affect how redisplay updates for these
> inserted characters, in a random, unpredictable way.

How could some processing affect redisplay?  If you have an idea how
that could happen, please tell, because I cannot imagine how it could
happen.  It is much easier for me to suspect that your system's video
driver or some other system software related to the terminal
"swallows" commands sent to the terminal.

What happens if you type "M-x redraw-display RET" -- do the "missing"
characters come back?  What happens if you suspend Emacs and then
resume it?

> I suspect this bug usually happens in the part of redisplay
> that updates the current line onl.  Once I typed DEL and
> a character two columns leftward was erased.
> 
> On the other hand, sometimes redisplkay fails to rewrite some lines,
> below point, and leaves then blank or with old contents.
> 
> The problem seems to happen mainly in mail mode.

Did you recently change anything in your system's software, like
upgraded some drivers or maybe even moved to a new system?  Did you
update your terminfo DB or something related to it?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#68314; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 8 Jan 2024 03:45:18 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun Jan 07 22:45:18 2024
Received: from localhost ([127.0.0.1]:34809 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1rMgZh-0005Pn-JY
	for submit <at> debbugs.gnu.org; Sun, 07 Jan 2024 22:45:18 -0500
Received: from lists.gnu.org ([2001:470:142::17]:35016)
 by debbugs.gnu.org with esmtp (Exim 4.84_2)
 (envelope-from <rms@HIDDEN>) id 1rMgZe-00051R-J2
 for submit <at> debbugs.gnu.org; Sun, 07 Jan 2024 22:45:15 -0500
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rms@HIDDEN>) id 1rMgZS-0007dD-RG
 for bug-gnu-emacs@HIDDEN; Sun, 07 Jan 2024 22:45:02 -0500
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <rms@HIDDEN>) id 1rMgZS-0002wZ-Hl
 for bug-gnu-emacs@HIDDEN; Sun, 07 Jan 2024 22:45:02 -0500
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=Date:Subject:To:From:mime-version:in-reply-to:
 references; bh=IkwBQ4nb/YITEK3hCEcvHLqkpDxemE1W/I5s0b6WaGU=; b=CUrAwUp33XJcmB
 BgIakw6LqFZiWJyVZH5FQgfioYgJM84bgUsRZnE1pUGqOadub9EMMi4neaZoJdjo8HibH3Nsf2yig
 G0psCXuZIXfVCXvNOG8ztPhkzDB8s3l1z6YJMazBnURv6Izhu1rFiTsoC19Xrb89+W45xrDvhyC2E
 fovs7kib3iu2Sj5ydEId0e71aV/dAAVi13rwf6N87cVUYn3Vuit5pjbuA077pg5o7XhebbOQxaX47
 OzcRHRV/QUmNlrMdwze/cd3x5ih4sAeP1b/FqWkO5PXEQPeH9JaAdL1OO5898qzdG4Uc4nrHkKKLf
 Jfe/nDqMVcE0SU852f2A==;
Received: from rms by fencepost.gnu.org with local (Exim 4.90_1)
 (envelope-from <rms@HIDDEN>)
 id 1rMgZP-0001Ey-QU; Sun, 07 Jan 2024 22:44:59 -0500
Content-Type: text/plain; charset=Utf-8
From: Richard Stallman <rms@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: 30.0.50; incorrect redisplay of contents of current line
X-Debbugs-Cc: 
Message-Id: <E1rMgZP-0001Ey-QU@HIDDEN>
Date: Sun, 07 Jan 2024 22:44:59 -0500
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Reply-To: rms@HIDDEN
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)


Here's the input I typed (at the end of a line containing
"US streaming dis-services have deleted many programs.  ").
Then I saw that the `e' at the end of `article' was missiing.

 SPC     ;; self-insert-command
 T       ;; self-insert-command
 h       ;; self-insert-command
 i       ;; self-insert-command
 s       ;; self-insert-command
 SPC     ;; self-insert-command
 a       ;; self-insert-command
 r       ;; self-insert-command
 t       ;; self-insert-command
 i       ;; self-insert-command
 c       ;; self-insert-command
 l       ;; self-insert-command
 e       ;; self-insert-command
 SPC     ;; self-insert-command
 g       ;; self-insert-command
 i       ;; self-insert-command
 v       ;; self-insert-command
 e       ;; self-insert-command
 s       ;; self-insert-command
 RET     ;; newline
 m       ;; self-insert-command
 a       ;; self-insert-command
 n       ;; self-insert-command
 y       ;; self-insert-command
 SPC     ;; self-insert-command
 d       ;; self-insert-command
 e       ;; self-insert-command
 t       ;; self-insert-command
 a       ;; self-insert-command
 i       ;; self-insert-command
 l       ;; self-insert-command
 s       ;; self-insert-command
 .       ;; self-insert-command
 ESC DEL ;; backward-kill-word
 e       ;; self-insert-command
 x       ;; self-insert-command
 a       ;; self-insert-command
 m       ;; self-insert-command
 p       ;; self-insert-command
 l       ;; self-insert-command
 e       ;; self-insert-command
 s       ;; self-insert-command
 .       ;; self-insert-command

So I tried to fix that

 C-p     ;; previous-line
 C-e     ;; move-end-of-line
 ESC b   ;; backward-word
 C-b     ;; backward-char
 e       ;; self-insert-command
 C-l     ;; recenter-top-bottom
 DEL     ;; delete-backward-char

and found that the `e' was missing only on the screen -- the buffer
was correct.  Therefore I typed DEL.

This bug in redisplay has been happening every few minutes this
morning.  I did not notice it happen yesterday, which surprises me
now.

This example is the simplest of those I have looked at recent-keys
for.  It has NOTHING unusual!

I have a suspicion.

I get tiny pauses even in typing ordinary input, as if something
time-consuming were running frequently between commands.

Those tiny pauses could affect how redisplay updates for these
inserted characters, in a random, unpredictable way.

I suspect this bug usually happens in the part of redisplay
that updates the current line onl.  Once I typed DEL and
a character two columns leftward was erased.

On the other hand, sometimes redisplkay fails to rewrite some lines,
below point, and leaves then blank or with old contents.

The problem seems to happen mainly in mail mode.



In GNU Emacs 30.0.50 (build 1, x86_64-pc-linux-gnu, GTK+ Version
 2.24.32, cairo version 1.16.0) of 2024-01-02 built on freetop
Repository revision: 1c369263db826a02e01d4209c7b6b8617971c37c
Repository branch: master
System Description: Trisquel GNU/Linux Nabia (10.0)

Configured using:
 'configure 'CFLAGS=-O0 -g' --with-gnutls=ifavailable'

Configured features:
CAIRO DBUS FREETYPE GIF GLIB GPM GSETTINGS HARFBUZZ JPEG JSON LIBOTF
LIBSELINUX LIBXML2 M17N_FLT MODULES NOTIFY INOTIFY PDUMPER PNG RSVG
SECCOMP SOUND THREADS TIFF TOOLKIT_SCROLL_BARS X11 XDBE XIM XINPUT2
XPM GTK2 ZLIB

Important settings:
  value of $LANG: en_US.UTF-8
  locale-coding-system: utf-8-unix

Major mode: RMAIL

Minor modes in effect:
  gpm-mouse-mode: t
  tooltip-mode: t
  global-eldoc-mode: t
  mouse-wheel-mode: t
  tool-bar-mode: t
  menu-bar-mode: t
  file-name-shadow-mode: t
  global-font-lock-mode: t
  font-lock-mode: t
  blink-cursor-mode: t
  minibuffer-regexp-mode: t
  line-number-mode: t
  transient-mark-mode: t
  auto-composition-mode: linux
  auto-encryption-mode: t
  auto-compression-mode: t
  abbrev-mode: t

Load-path shadows:
None found.

Features:
(bug-reference find-func profiler time-stamp texinfo texinfo-loaddefs
arc-mode archive-mode doc-view filenotify jka-compr image-mode exif
ffap compare-w log-edit add-log vc-hg vc-git vc-bzr vc-src vc-sccs
vc-svn smerge-mode diff-mode vc vc-dispatcher mule-diag noutline
outline icons two-column pp shadow emacsbug shortdoc comp-common
rmail-spam-filter rmailedit rmailsort undigest kmacro cl-extra
parse-time iso8601 vc-cvs vc-rcs log-view easy-mmode pcvs-util
mhtml-mode css-mode eww xdg url-queue mm-url gnus nnheader range
wid-edit color js c-ts-common cc-mode cc-fonts cc-guess cc-menus
cc-cmds cc-styles cc-align cc-engine cc-vars cc-defs sgml-mode
facemenu format-spec battery dbus diff help-fns radix-tree mule-util
display-line-numbers grep compile etags fileloop generator xref quail
epa-mail sh-script rx smie treesit executable shell pcomplete comint
ansi-osc ring tabify imenu man ansi-color rect thingatpt help-mode
novice project misearch multi-isearch ispell textsec uni-scripts
idna-mapping ucs-normalize uni-confusable textsec-check shr pixel-fill
kinsoku url-file svg xml dom dabbrev mailalias rmailout rmailkwd qp
rmailmm message sendmail yank-media puny rfc822 mml mml-sec epa epg
epg-config gnus-util text-property-search time-date mm-decode
mm-bodies mm-encode mailabbrev gmm-utils mailheader mail-parse rfc2231
files-x dired-aux dired dired-loaddefs t-mouse term/linux view derived
disp-table advice rmailsum rmail rfc6068 rfc2047 rfc2045 ietf-drums
mm-util mail-prsvr mail-utils finder-inf osm-autoloads info
compat-autoloads package browse-url url url-proxy url-privacy
url-expand url-methods url-history url-cookie generate-lisp-file
url-domsuf url-util mailcap url-handlers url-parse auth-source cl-seq
eieio eieio-core cl-macs password-cache json subr-x map byte-opt gv
bytecomp byte-compile url-vars cl-loaddefs cl-lib rmc iso-transl
tooltip cconv eldoc paren electric uniquify ediff-hook vc-hooks
lisp-float-type elisp-mode mwheel term/x-win x-win term/common-win
x-dnd touch-screen tool-bar dnd fontset image regexp-opt fringe
tabulated-list replace newcomment text-mode lisp-mode prog-mode
register page tab-bar menu-bar rfn-eshadow isearch easymenu timer
select scroll-bar mouse jit-lock font-lock syntax font-core
term/tty-colors frame minibuffer nadvice seq simple cl-generic
indonesian philippine cham georgian utf-8-lang misc-lang vietnamese
tibetan thai tai-viet lao korean japanese eucjp-ms cp51932 hebrew
greek romanian slovak czech european ethiopic indian cyrillic chinese
composite emoji-zwj charscript charprop case-table epa-hook
jka-cmpr-hook help abbrev obarray oclosure cl-preloaded button
loaddefs theme-loaddefs faces cus-face macroexp files window
text-properties overlay sha1 md5 base64 format env code-pages mule
custom widget keymap hashtable-print-readable backquote threads
dbusbind inotify dynamic-setting system-font-setting
font-render-setting cairo gtk x-toolkit xinput2 x multi-tty
move-toolbar make-network-process emacs)

Memory information:
((conses 16 711365 165293) (symbols 48 21608 35)
 (strings 32 121559 15771) (string-bytes 1 2901740) (vectors 16 97591)
 (vector-slots 8 2218489 87800) (floats 8 283 617)
 (intervals 56 60611 1987) (buffers 976 93))
[[[ To any NSA and FBI agents reading my email: please consider    ]]]
[[[ whether defending the US Constitution against all enemies,     ]]]
[[[ foreign or domestic, requires you to follow Snowden's example. ]]]


-- 
Dr Richard Stallman (https://stallman.org)
Chief GNUisance of the GNU Project (https://gnu.org)
Founder, Free Software Foundation (https://fsf.org)
Internet Hall-of-Famer (https://internethalloffame.org)






Acknowledgement sent to rms@HIDDEN:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#68314; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Sat, 20 Jan 2024 12:30:02 UTC

GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997 nCipher Corporation Ltd, 1994-97 Ian Jackson.