1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00
emacs/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.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-banner.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-basic.el Support setting umask symbolically in Eshell 2024-01-27 22:21:23 -08:00
em-cmpl.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-dirs.el ; Be more strict with command arguments for a few Eshell commands 2024-01-27 22:21:29 -08:00
em-elecslash.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-extpipe.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-glob.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-hist.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-ls.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-pred.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-prompt.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-rebind.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-script.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-smart.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-term.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-tramp.el Fix command replacement with the Eshell builtin versions of "sudo" and "doas" 2024-01-27 12:22:57 -08:00
em-unix.el ; Be more strict with command arguments for a few Eshell commands 2024-01-27 22:21:29 -08:00
em-xtra.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-arg.el In Eshell, allow an escaped newline at the end of a command 2024-01-28 15:54:46 -08:00
esh-cmd.el Fix detection of directly-invokable commands in Eshell 2024-01-26 10:17:19 -08:00
esh-ext.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-io.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-mode.el Fix detection of directly-invokable commands in Eshell 2024-01-26 10:17:19 -08:00
esh-module.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-opt.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-proc.el ; Be more strict with command arguments for a few Eshell commands 2024-01-27 22:21:29 -08:00
esh-util.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-var.el Fix detection of directly-invokable commands in Eshell 2024-01-26 10:17:19 -08:00
eshell.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00