]> git.eshelyaron.com Git - emacs.git/commit
Simplify creation of Eshell command forms
authorJim Porter <jporterbugs@gmail.com>
Wed, 18 Sep 2024 05:05:50 +0000 (22:05 -0700)
committerEshel Yaron <me@eshelyaron.com>
Thu, 17 Oct 2024 18:51:23 +0000 (20:51 +0200)
commitc328be5eba4a5771276cea8f6baa937bd8a9e849
treedbd6d4b8884991e8b1c2baf8f4853285244445d9
parent7d93ca440f14ee882a3fab17b435745a1e9f409d
Simplify creation of Eshell command forms

Previously, Eshell over-aggressively converted subcommands, which forced
control flow commands to undo that change.

* lisp/eshell/esh-cmd.el (eshell-pre-rewrite-command-hook): Remove
'eshell-subcommand-arg-values' call from here...
(eshell-rewrite-named-command): ... and put it here.
(eshell-invokify-arg): Make obsolete.
(eshell-structure-basic-command): Handle subcommand test forms.
(eshell-rewrite-for-command, eshell-rewrite-while-command)
(eshell-rewrite-if-command): Don't call 'eshell-invokify-arg'; it's not
necessary.

(cherry picked from commit af029cdb3a69ba67ae88c9e93b7564778c61a3c6)
lisp/eshell/esh-cmd.el