]> git.eshelyaron.com Git - emacs.git/commit
Improve correctness of 'eshell-quote-argument'
authorJim Porter <jporterbugs@gmail.com>
Sun, 9 Jun 2024 22:21:08 +0000 (15:21 -0700)
committerEshel Yaron <me@eshelyaron.com>
Mon, 10 Jun 2024 07:27:42 +0000 (09:27 +0200)
commitc1260450dbaac75693563e998c9b9936c5e96c78
tree217ed589b63cc4ef304aa03f2528ee5eb72d26ea
parent3b90e2a73025681d7836016f2d80100d5532a1f1
Improve correctness of 'eshell-quote-argument'

* lisp/eshell/esh-arg.el (eshell-quote-argument): Mention that this
function is for use within Eshell buffers.
(eshell-quote-backslash): Properly quote newlines.

* lisp/eshell/em-unix.el (eshell/cat, eshell/du): Throw
'eshell-external' instead; that's what it's here for.

* test/lisp/eshell/esh-proc-tests.el (esh-proc-test-quote-argument):
Remove.
(esh-proc-test/emacs-command):
* test/lisp/eshell/esh-var-tests.el (esh-var-test/path-var/set)
(esh-var-test/path-var/set-locally): Use 'eshell-quote-argument'.

* test/lisp/eshell/em-unix-tests.el (em-unix-test/compile/interactive):
Use 'shell-quote-argument' (Note: *not* 'eshell-...').

(cherry picked from commit 32a75ecc73b78ad922b2ae66d30b907b13e19cb8)
lisp/eshell/em-unix.el
lisp/eshell/esh-arg.el
test/lisp/eshell/em-unix-tests.el
test/lisp/eshell/esh-proc-tests.el
test/lisp/eshell/esh-var-tests.el