]> git.eshelyaron.com Git - emacs.git/commit
Ensure navigating by paragraphs in Eshell stops at prompts and paragraphs
authorJim Porter <jporterbugs@gmail.com>
Fri, 14 Jun 2024 04:26:53 +0000 (21:26 -0700)
committerEshel Yaron <me@eshelyaron.com>
Fri, 21 Jun 2024 19:01:20 +0000 (21:01 +0200)
commit39fdb835a9ebf4e3574fdee85094b404569a24a1
tree37a1f3434f8cdd2511e45fdfeaec617080c242f9
parentaada192458bf4f7ffcc469bc461c62413242489a
Ensure navigating by paragraphs in Eshell stops at prompts and paragraphs

The previous implementation in 6ae2b74ed20 only stopped at prompts,
which isn't the right behavior (bug#61545).

* lisp/eshell/em-prompt.el (eshell-forward-paragraph)
(eshell-backward-paragraph): Reimplement to handle prompts and
paragraphs (the latter by calling the original 'forward-paragraph').

* test/lisp/eshell/em-prompt-tests.el
(em-prompt-test/next-previous-prompt/multiline): Rename.
(em-prompt-test/forward-backward-paragraph-1): New function.
(em-prompt-test/forward-backward-paragraph)
(em-prompt-test/forward-backward-paragraph/multiline): New tests.

(cherry picked from commit e22b072423a6764632328d4e0fecc06a6e7efe9b)
lisp/eshell/em-prompt.el
test/lisp/eshell/em-prompt-tests.el