]> git.eshelyaron.com Git - emacs.git/commit
Return separators from 'eshell-split-commands' directly when requested
authorJim Porter <jporterbugs@gmail.com>
Tue, 8 Aug 2023 05:28:24 +0000 (22:28 -0700)
committerJim Porter <jporterbugs@gmail.com>
Thu, 10 Aug 2023 17:55:49 +0000 (10:55 -0700)
commit60090abcbc5d21c759c39926d9f45a18fc1c9913
treed3e20ef301826592e5122d33f09c02a3fe3ed32d
parent3659fc3ed8aa3b500fdb98fe22e8e86f6d34d754
Return separators from 'eshell-split-commands' directly when requested

This eliminates the need for using a dynamically-bound variable to
hold the list of separators.

* lisp/eshell/esh-cmd.el (eshell--sep-terms): Remove.
(eshell-split-commands): New function, adapted from
'eshell-separate-commands'.
(eshell-separate-commands): Make obsolete, and call
'eshell-split-commands'.
(eshell-parse-command, eshell-parse-pipeline): Use
'eshell-split-commands'.

* lisp/eshell/esh-arg.el (eshell-parse-delimiter): Update comment.
lisp/eshell/esh-arg.el
lisp/eshell/esh-cmd.el