unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#23819: 25.0.95; display botched badly in xterm window
@ 2016-06-22  2:01 Paul Eggert
  2016-06-22 14:54 ` Eli Zaretskii
  0 siblings, 1 reply; 11+ messages in thread
From: Paul Eggert @ 2016-06-22  2:01 UTC (permalink / raw)
  To: 23819

[-- Attachment #1: Type: text/plain, Size: 2034 bytes --]

This appears to be a relatively recent regression in the emacs-25 
branch. It may not be easy to bisect. I first noticed it a few days ago, 
and the display glitches are pretty bad.

I just now reproduced the problem by using ssh to log into a Fedora 23 
x86-64 system running emacs-25 (commit 
dc5e65b5deb2f5b67f6c3a06ae81c6b074bd4b56) from my laptop, which is 
running Ubuntu 12.04.5 gnome-terminal in a 37x80 window (TERM=xterm in 
the environment). I have seen the problem from recent Ubuntu clients as 
well.

I changed to the Emacs source directory and ran the command

src/emacs -nw -Q src/conf_post.h

I then typed:

C-s h a s _

The screen display was messed up at this point; see attached image. 
Notice that the minibuffer says "hhs_" (with a highlighted second "h") 
instead of the correct ("has_").

The problem is not easily reproducible. Often Emacs works. Sometimes it 
does not, and the screen keeps getting more and more corrupted as time 
goes on. Symptoms often differ.

I just now tried a similar recipe (without the '_'), and this time Emacs 
contained the following text at the start of the (now-modified) 
conf_post.h buffer:

1;3201;0chas/* conf_post.h --- configure.ac includes this via AH_BOTTOM

and view-lossage showed the following:
  C-s C-s C-s [isearch-forward]
  ESC [ > [nil]
  1 [self-insert-command]
  ; [c-electric-semi&comma]
  3 [self-insert-command]
  2 [self-insert-command]
  0 [self-insert-command]
  1 [self-insert-command]
  ; [c-electric-semi&comma]
  0 [self-insert-command]
  c [self-insert-command]
  h [self-insert-command]
  a [self-insert-command]
  s [self-insert-command]
  ESC x [execute-extended-command]
  v [self-insert-command]
  i [self-insert-command]
  e [self-insert-command]
  w [self-insert-command]
  - [self-insert-command]
  l [self-insert-command]
...


My guess is that there is something wrong with the initial handshake 
with the terminal, to find out its characteristics; if memory serves 
this is something we've fiddled with in emacs-25 reasonably recently.

[-- Attachment #2: Emacs-screenshot.png --]
[-- Type: image/png, Size: 130978 bytes --]

^ permalink raw reply	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2022-01-30 16:01 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-06-22  2:01 bug#23819: 25.0.95; display botched badly in xterm window Paul Eggert
2016-06-22 14:54 ` Eli Zaretskii
2016-06-22 18:55   ` Paul Eggert
2016-06-22 19:00     ` Eli Zaretskii
2016-06-22 21:27       ` Paul Eggert
2016-06-22 19:04     ` Eli Zaretskii
2016-06-23  8:58       ` Paul Eggert
2016-06-23 14:53         ` Eli Zaretskii
2022-01-29 16:55           ` Lars Ingebrigtsen
2022-01-30  2:53             ` Paul Eggert
2022-01-30 16:01               ` Lars Ingebrigtsen

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