]> git.eshelyaron.com Git - emacs.git/commit
Be more precise about navigating forward/backward through Eshell prompts
authorJim Porter <jporterbugs@gmail.com>
Sat, 2 Sep 2023 21:44:33 +0000 (14:44 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sat, 2 Sep 2023 22:06:22 +0000 (15:06 -0700)
commit5a430f90c1182ace27883a2a7ee808f3e5d722ce
treee862da49bdac9a55ce73a3deedd09e5dc80e097f
parent088fec0a1f8bf2ff5182d93ff48063cc17193037
Be more precise about navigating forward/backward through Eshell prompts

* lisp/eshell/em-prompt.el (eshell-next-prompt): Make N optional.
When navigating, first move to the end of the prompt.  This makes the
subsequent navigation more predictable.
(eshell-previous-prompt): Mane N optional.

* test/lisp/eshell/em-prompt-tests.el
(em-prompt-test--with-multiline): Move to "Code" section.
(em-prompt-test/next-previous-prompt-with): Rename to...
(em-prompt-test/next-previous-prompt-1): ... this, and add additional
test cases.  Update callers.
(em-prompt-test/forward-backward-matching-input-with): Rename to...
(em-prompt-test/forward-backward-matching-input-1): ... this, and
improve existing test cases.
lisp/eshell/em-prompt.el
test/lisp/eshell/em-prompt-tests.el