1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00
emacs/lisp/eshell
Jim Porter 047607f6e6 Fix detection of directly-invokable commands in Eshell
I think this regressed partly due to eef32d13da, so let's add some
regression tests to make sure that doesn't happen again.

* lisp/eshell/em-unix.el (eshell-unix-initialize): Add "compile".

* lisp/eshell/esh-cmd.el (eshell--find-subcommands): Yield the second
element of the subcommand.
(eshell--invoke-command-directly-p): Rename and account for
'eshell-with-copied-handles'.
(eshell-invoke-directly): Rename to...
(eshell-invoke-directly-p): ... this, and use 'pcase' to make the
logic clearer.

* lisp/eshell/esh-mode.el (eshell-send-input): Always queue input if
the process is running; rename some locals to be clearer.

* lisp/eshell/esh-var.el (eshell-var-initialize): Add "env" as a
complex command.

* test/lisp/eshell/esh-cmd-tests.el
(esh-cmd-test--deftest-invoke-directly): New macro.
(no-args, with-args, multiple-cmds, subcmd, complex, complex-subcmd):
New test cases.
2024-01-26 10:17:19 -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 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-cmpl.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-dirs.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +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 Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
em-unix.el Fix detection of directly-invokable commands in Eshell 2024-01-26 10:17:19 -08:00
em-xtra.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +08:00
esh-arg.el Merge from savannah/emacs-29 2024-01-02 10:28:14 +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 Merge from savannah/emacs-29 2024-01-02 10:28:14 +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