]> git.eshelyaron.com Git - emacs.git/commit
Further improve determination of when commands can be invoked directly
authorJim Porter <jporterbugs@gmail.com>
Fri, 21 Jan 2022 09:32:00 +0000 (10:32 +0100)
committerLars Ingebrigtsen <larsi@gnus.org>
Fri, 21 Jan 2022 09:32:00 +0000 (10:32 +0100)
commit587edc46dfc0aa035c49a5c97ff36472e2c4dbfd
tree6fbaf9ec3124706ea25aab0421bbe1c3393cfaa1
parenta6ad584ac27dcc6bbe2476face53a3165f99366d
Further improve determination of when commands can be invoked directly

This covers the case when a subcommand is to be invoked in more places
than before, for example when a subcommand is concatenated in an
argument.

* lisp/eshell/esh-cmd.el (eshell--find-subcommands): New fuction.
(eshell--invoke-command-directly): Use 'eshell-find-subcommands'.

* test/lisp/eshell/eshell-tests.el
(eshell-test/interp-cmd-external-concat): New test (bug#30725).
lisp/eshell/esh-cmd.el
test/lisp/eshell/eshell-tests.el