1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-01-20 19:42:53 -08:00
emacs/test/lisp/eshell
Jim Porter fada04cfc7 Add support for chaining conditionals in Eshell
* lisp/eshell/esh-cmd.el (eshell-structure-basic-command): Check for the
presence of the conditional.  Allow any number of BODY forms.
(eshell-rewrite-if-command): Add support for 'else' keyword and chained
conditionals.

* test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/if-else-statement):
Test 'else' keyword.
(esh-cmd-test/if-else-statement-chain): New test.

* doc/misc/eshell.texi (Control Flow): Document this change.

* etc/NEWS: Announce this change.
2024-10-16 21:48:36 -07:00
..
em-alias-tests.el
em-basic-tests.el
em-cmpl-tests.el
em-dirs-tests.el
em-extpipe-tests.el
em-glob-tests.el
em-hist-tests.el
em-ls-tests.el
em-pred-tests.el
em-prompt-tests.el
em-script-tests.el
em-tramp-tests.el
em-unix-tests.el
esh-arg-tests.el
esh-cmd-tests.el
esh-ext-tests.el
esh-io-tests.el
esh-mode-tests.el
esh-opt-tests.el
esh-proc-tests.el
esh-util-tests.el
esh-var-tests.el
eshell-tests-helpers.el
eshell-tests-unload.el
eshell-tests.el