all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@gmail.com>
To: 30775@debbugs.gnu.org
Subject: bug#30775: 27.0.50; term.el regression handling zsh prompt - extra "%"
Date: Sun, 11 Mar 2018 20:42:24 -0400	[thread overview]
Message-ID: <873716yvin.fsf@gmail.com> (raw)

This is a regression in master (emacs-26 is ok), as reported in [1]:

    when I open term or ansi-term there is always a % character at the
    end of every command i execute in term.

Stated in terms of tests/lisp/term.el, the following fails:

    (ert-deftest term-line-wrapping-then-motion ()
      "Make sure we reset the line-wrapping state after moving cursor.
    A real-life example is the default zsh prompt which writes spaces
    to the end of line (triggering line-wrapping state), and then
    sends a carriage return followed by another space to overwrite
    the first character of the line."
      (let* ((width 10)
             (strs (list "x" (make-string (1- width) ?_)
                         "\r_")))
        (should (equal (term-test-screen-from-input width 12 strs)
                       (make-string width ?_)))))

Patch to follow.

[1]: https://emacs.stackexchange.com/questions/39207/emacs-27-0-50-term-el-doesnt-play-well-with-zsh





             reply	other threads:[~2018-03-12  0:42 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-03-12  0:42 Noam Postavsky [this message]
2018-03-12  0:49 ` bug#30775: 27.0.50; term.el regression handling zsh prompt - extra "%" Noam Postavsky
2018-03-14  2:03   ` Noam Postavsky

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=873716yvin.fsf@gmail.com \
    --to=npostavs@gmail.com \
    --cc=30775@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.