unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
* bug#33230: 26.1; Soft-wrap issue in term.el with term-suppress-hard-newline
@ 2018-11-01 18:11 Bruno CHARRON
  2018-11-01 22:53 ` Noam Postavsky
  0 siblings, 1 reply; 16+ messages in thread
From: Bruno CHARRON @ 2018-11-01 18:11 UTC (permalink / raw)
  To: 33230

Running 'emacs -Q', I load the latest 'term.el' in master (commit
bd36ab5), then set term-suppress-hard-newline to 't' and launch 'term'
with zsh as shell.
When typing a command which overflows the screen width, the shell sends
a "soft-wrap" after typing a character on the last column, say 'x
^M^[[K' after typing 'x' but 'term' does not wrap, it continues the same
row.
Then when hitting backspace, the shell asks to go up a row '^[[A' and
the 'term' state becomes inconsistent as it did not go down before.
The reason seems to be that at line 2912 (term.el, commit bd36ab5), 'x '
is inserted which makes the cursor go one column past the edge of the
screen and the wrapping at line 2936 only checks that the cursor is
exactly at the edge of the screen.
When term-suppress-hard-newline is nil, the wrapping is properly done
thanks to the '>' condition at line 2903.

In GNU Emacs 26.1 (build 2, x86_64-pc-linux-gnu, GTK+ Version 3.18.9)
 of 2018-05-29 built on lgw01-amd64-038
Windowing system distributor 'The X.Org Foundation', version 11.0.11804000
System Description: Ubuntu 16.04.5 LTS





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

end of thread, other threads:[~2022-03-22 15:42 UTC | newest]

Thread overview: 16+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-11-01 18:11 bug#33230: 26.1; Soft-wrap issue in term.el with term-suppress-hard-newline Bruno CHARRON
2018-11-01 22:53 ` Noam Postavsky
2018-11-02  0:50   ` Bruno CHARRON
2018-11-03  2:15     ` Noam Postavsky
2018-11-04  7:23       ` Bruno CHARRON
2018-11-04  9:07         ` martin rudalics
2018-11-04  9:56           ` martin rudalics
2018-11-04 11:06             ` Bruno CHARRON
2018-11-13  9:07               ` martin rudalics
2018-11-13 17:18                 ` Eli Zaretskii
2018-11-14  8:32                   ` martin rudalics
2018-11-14 15:36                     ` Eli Zaretskii
2018-11-18  9:22               ` martin rudalics
2018-11-18 16:17                 ` Bruno Charron
2018-11-18 19:40                   ` martin rudalics
2022-03-22 15:42                   ` 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).