all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Noam Postavsky <npostavs@users.sourceforge.net>
To: James Nguyen <jamesn@fastmail.com>
Cc: Philipp Stephani <p.stephani2@gmail.com>, 29672@debbugs.gnu.org
Subject: bug#29672: 26.0.90 Can't move cursor above prompt in evil-mode
Date: Tue, 12 Dec 2017 09:08:03 -0500	[thread overview]
Message-ID: <87zi6oca4c.fsf@users.sourceforge.net> (raw)
In-Reply-To: <B4A2CC58-63D0-4584-B0DE-CFF9A3CAFEB7@fastmail.com> (James Nguyen's message of "Mon, 11 Dec 2017 22:38:25 -0800")

James Nguyen <jamesn@fastmail.com> writes:

> This is in char-mode.
>
> It works in emacs 25.
>
> ——————————————————
> emacs-major-version ;; 25
> (add-to-list 'load-path "/Users/james/.emacs.d/elpa/25/evil-20171129.651")
> (require 'evil)
> (evil-mode)
> M-x term
> "/bin/zsh"
> Press ESC to go into 'normal state'.
> Press k to move cursor above prompt. --> cursor moves above prompt
> ——————————————————
>
> ——————————————————
> emacs-major-version ;; 26
> (add-to-list 'load-path "/Users/james/.emacs.d/elpa/26/evil-20171129.651")
> (require 'evil)
> (evil-mode)
> M-x term
> "/bin/zsh"
> Press ESC to go into 'normal state'.
> Press k to move cursor above prompt. --> cursor won't move outside of prompt
> ——————————————————

A similar recipe without evil:

M-x term
"/bin/bash" ;; I happen not to have zsh installed at the moment
Hit RET a few times so there is somewhere to move.
C-c M-x eval-expression RET (previous-line) RET
See cursort move up, and then move back to the prompt.

Seems to be on purpose, caused by this code, introduced in [1: 0d8e4f45d6]:

    ;; Don't allow changes to the buffer or to point which are not
    ;; caused by the process filter.
    (when term-char-mode-buffer-read-only
      (setq buffer-read-only t))
    (add-hook 'pre-command-hook #'term-set-goto-process-mark nil t)
    (add-hook 'post-command-hook #'term-goto-process-mark-maybe nil t)


[1: 0d8e4f45d6]: 2017-10-21 11:17:56 +0300
  Avoid creating inconsistent buffer states in term-char-mode
  https://git.savannah.gnu.org/cgit/emacs.git/commit/?id=0d8e4f45d612ecd77f4997fae30e4d1591f9b8a6





  reply	other threads:[~2017-12-12 14:08 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-12-12  6:38 bug#29672: 26.0.90 Can't move cursor above prompt in evil-mode James Nguyen
2017-12-12 14:08 ` Noam Postavsky [this message]
2017-12-21 20:44   ` Philipp Stephani
2017-12-22  2:16     ` James Nguyen

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=87zi6oca4c.fsf@users.sourceforge.net \
    --to=npostavs@users.sourceforge.net \
    --cc=29672@debbugs.gnu.org \
    --cc=jamesn@fastmail.com \
    --cc=p.stephani2@gmail.com \
    /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.