emacs/doc
Jim Porter db745f37ae 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.
2022-01-12 16:58:37 +02:00
..
emacs ; * doc/emacs/haiku.texi (Haiku Basics): Fix typo and wording. 2022-01-11 17:17:05 +02:00
lispintro Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
lispref ; * doc/lispref/display.texi (Face Attributes): Fix typo. 2022-01-11 09:40:32 +08:00
man Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
misc Follow POSIX/GNU argument conventions for 'eshell-eval-using-options' 2022-01-12 16:58:37 +02:00