diff options
author | Jim Porter <jporterbugs@gmail.com> | 2022-01-04 12:58:38 -0800 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2022-01-12 16:58:37 +0200 |
commit | db745f37aec2adc44ec4b2eae0720e0365ed0ca9 (patch) | |
tree | 1c2b405ad2bc81d34fd2ae140c18855d78460665 /test/lisp/emacs-lisp/rmc-tests.el | |
parent | 7ebcb4b6f2f4531ebc893bb3b2f74d6298bf9b41 (diff) | |
download | emacs-db745f37aec2adc44ec4b2eae0720e0365ed0ca9.tar.gz emacs-db745f37aec2adc44ec4b2eae0720e0365ed0ca9.tar.bz2 emacs-db745f37aec2adc44ec4b2eae0720e0365ed0ca9.zip |
Follow POSIX/GNU argument conventions for 'eshell-eval-using-options'
* lisp/eshell/esh-opt.el (eshell--split-switch): New function.
(eshell-set-option): Allow setting a supplied value instead of always
consuming from 'eshell--args'.
(eshell--process-option): Support consuming option values specified as
a single token.
(eshell--process-args): For short options, pass full switch token to
'eshell--process-option'.
* test/lisp/eshell/esh-opt-tests.el (esh-opt-process-args-test): Fix
test.
(test-eshell-eval-using-options): Add tests for various types of
options.
* doc/misc/eshell.texi (Defining new built-in commands): New
subsection, describe how to use 'eshell-eval-using-options'.
* etc/NEWS: Announce the change.
Diffstat (limited to 'test/lisp/emacs-lisp/rmc-tests.el')
0 files changed, 0 insertions, 0 deletions