]> git.eshelyaron.com Git - emacs.git/commit
Support arbitrary Eshell arguments inside special references
authorJim Porter <jporterbugs@gmail.com>
Tue, 22 Aug 2023 20:13:45 +0000 (13:13 -0700)
committerJim Porter <jporterbugs@gmail.com>
Tue, 24 Oct 2023 18:36:27 +0000 (11:36 -0700)
commit1c2cb9cd6192e97a29fbe338fd1a639f6dfae2d2
tree8ffa80dc0de1013094e9e33e052693b7a19d83a7
parentf7d88f4a0478d89f70243456af8c4d4817d6b251
Support arbitrary Eshell arguments inside special references

* lisp/eshell/esh-arg.el (eshell-current-argument-plain): New variable.
(eshell-parse-special-reference): Use 'eshell-parse-arguments'.
(eshell-get-buffer): New function.
(eshell-insert-buffer-name): Properly quote the buffer name.

* lisp/eshell/esh-proc.el (eshell-read-process-name): Move to "Special
references" section.
(eshell-insert-process): Properly quote the process name.

* lisp/eshell/em-extpipe.el (eshell-parse-external-pipeline):
* lisp/eshell/esh-io.el (eshell-parse-redirection): Don't do anything
when 'eshell-argument-plain' is non-nil.

* test/lisp/eshell/esh-arg-tests.el
(esh-arg-test/special-reference/quoted)
(esh-arg-test/special-reference/var-expansion): New tests.
(esh-arg-test/special-reference/special): Rename to...
(esh-arg-test/special-reference/special-characters): ... this.

* test/lisp/eshell/em-extpipe-tests.el (em-extpipe-tests--deftest):
Properly quote the buffer name.
(em-extpipe-test-4, em-extpipe-test-7): Use 'eshell-get-buffer'.
lisp/eshell/em-extpipe.el
lisp/eshell/esh-arg.el
lisp/eshell/esh-io.el
lisp/eshell/esh-proc.el
test/lisp/eshell/em-extpipe-tests.el
test/lisp/eshell/esh-arg-tests.el