1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-05 11:21:04 -08:00
emacs/test/lisp/eshell
Jim Porter 1f5a13d584 In Eshell, allow an escaped newline at the end of a command
Normally, "echo<RET>" runs the command "echo".  Likewise,
"echo\<RET><RET>" should too: we escape the first newline, and then
the second one is unescaped and should send the command input to
Eshell.  Previously, you had to press RET a third time, but now it
works as expected.

* lisp/eshell/esh-arg.el (eshell-looking-at-backslash-return): Make
obsolete.
(eshell-parse-backslash): A backslash sequence is only incomplete if
there's nothing at all after it.

* test/lisp/eshell/esh-arg-tests.el (esh-arg-test/escape/newline)
(esh-arg-test/escape-quoted/newline): Remove inaccurate comment;
escaped newlines are always special.
(esh-arg-test/escape/trailing-newline): New test.
2024-01-28 15:54:46 -08:00
..
em-alias-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-basic-tests.el Support setting umask symbolically in Eshell 2024-01-27 22:21:23 -08:00
em-cmpl-tests.el ; Fix test failures from the fix for bug#67661 2024-01-17 09:32:18 -08:00
em-dirs-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-extpipe-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-glob-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-hist-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-ls-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
em-pred-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
em-prompt-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
em-script-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-tramp-tests.el Fix command replacement with the Eshell builtin versions of "sudo" and "doas" 2024-01-27 12:22:57 -08:00
em-unix-tests.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
esh-arg-tests.el In Eshell, allow an escaped newline at the end of a command 2024-01-28 15:54:46 -08:00
esh-cmd-tests.el ; Add docstring to test 2024-01-26 11:56:47 -08:00
esh-ext-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-io-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-opt-tests.el ; Add 2024 to copyright years 2024-01-02 09:47:10 +08:00
esh-proc-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-util-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-var-tests.el Add support for running commands via Eshell's "env" command 2024-01-25 21:05:02 -08:00
eshell-tests-helpers.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
eshell-tests-unload.el ; Add 2024 to copyright years 2024-01-02 10:30:05 +08:00
eshell-tests.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00