all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruno CHARRON <bruno@charron.email>
To: 33230@debbugs.gnu.org
Subject: bug#33230: 26.1; Soft-wrap issue in term.el with term-suppress-hard-newline
Date: Fri, 2 Nov 2018 03:11:09 +0900	[thread overview]
Message-ID: <CAKx9rsxSXH+RWrDjUcgiH0fTDdEPdCm8E+7hwhWgpzirO=eQew@mail.gmail.com> (raw)

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





             reply	other threads:[~2018-11-01 18:11 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-11-01 18:11 Bruno CHARRON [this message]
2018-11-01 22:53 ` bug#33230: 26.1; Soft-wrap issue in term.el with term-suppress-hard-newline 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

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

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

  git send-email \
    --in-reply-to='CAKx9rsxSXH+RWrDjUcgiH0fTDdEPdCm8E+7hwhWgpzirO=eQew@mail.gmail.com' \
    --to=bruno@charron.email \
    --cc=33230@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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.