diff options
author | Jim Porter <jporterbugs@gmail.com> | 2024-11-03 11:22:27 -0800 |
---|---|---|
committer | Jim Porter <jporterbugs@gmail.com> | 2024-11-03 15:42:26 -0800 |
commit | 08d5994b435c119bde8b8ac8f7152810d1814d1e (patch) | |
tree | 848d7d9575a76c69b019cb4193b809ee82406aad /lisp/emacs-lisp/debug.el | |
parent | b3c82f939c3ca35bd43e9a9a22b0f9d3e3fa29f2 (diff) | |
download | emacs-08d5994b435c119bde8b8ac8f7152810d1814d1e.tar.gz emacs-08d5994b435c119bde8b8ac8f7152810d1814d1e.tar.bz2 emacs-08d5994b435c119bde8b8ac8f7152810d1814d1e.zip |
Improve handling of Eshell "for" loops
This fixes some errors with more-complex string forms, and also allows
iterating over sequences other than just lists.
* lisp/eshell/esh-cmd.el (eshell-for-iterate): New function...
(eshell-rewrite-for-command): ... use it.
* test/lisp/eshell/esh-cmd-tests.el (esh-cmd-test/for-loop): Test
multiple values.
(esh-cmd-test/for-loop-string, esh-cmd-test/for-loop-vector): New tests.
(esh-cmd-test/for-loop-mixed-args): Rename.
* test/lisp/eshell/esh-proc-tests.el
(esh-proc-test/sentinel/change-buffer): Make sure all the processes get
cleaned up.
Diffstat (limited to 'lisp/emacs-lisp/debug.el')
0 files changed, 0 insertions, 0 deletions