diff options
| author | Jay Kamat | 2018-05-08 12:36:36 -0700 |
|---|---|---|
| committer | Noam Postavsky | 2018-05-15 19:32:49 -0400 |
| commit | a4c616e27aa48e7d524e0c5cfaf67f17d04989e4 (patch) | |
| tree | 67ac930677e194e8ab3d583568c191c28294d996 /src/alloc.c | |
| parent | 92a8230e49a65be48442ee95cf50c90514e48f99 (diff) | |
| download | emacs-a4c616e27aa48e7d524e0c5cfaf67f17d04989e4.tar.gz emacs-a4c616e27aa48e7d524e0c5cfaf67f17d04989e4.zip | |
esh-opt.el: Add a :parse-leading-options-only argument (Bug#28323)
* lisp/eshell/esh-opt.el (eshell-eval-using-options): Add a new
:parse-leading-options-only argument which ignores dash/switch
arguments after the first positional argument.
(eshell--process-args): Abort processing of arguments if we see one
positional argument and :parse-leading-options-only is set.
* lisp/eshell/em-tramp.el (eshell/sudo): Use
:parse-leading-options-only, to avoid parsing subcommand switches as
switches of sudo itself.
* test/lisp/eshell/esh-opt-tests.el: Add tests for new and old behavior.
Diffstat (limited to 'src/alloc.c')
0 files changed, 0 insertions, 0 deletions