1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-27 07:37:33 +00:00
emacs/lisp/eshell
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
..
em-alias.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-banner.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-basic.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-cmpl.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-dirs.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-glob.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-hist.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-ls.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-pred.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-prompt.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-rebind.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
em-script.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-smart.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-term.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-tramp.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-unix.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
em-xtra.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
esh-arg.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-cmd.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-ext.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
esh-io.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-mode.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-module.el ; Add 2022 to copyright years. 2022-01-01 02:45:51 -05:00
esh-opt.el Follow POSIX/GNU argument conventions for 'eshell-eval-using-options' 2022-01-12 16:58:37 +02:00
esh-proc.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-util.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
esh-var.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00
eshell.el Merge from origin/emacs-28 2022-01-01 07:03:03 -05:00