]> git.eshelyaron.com Git - emacs.git/commit
Fix Eshell incompatibility with "[" command when eshell-pred is disabled
authorJim Porter <jporterbugs@gmail.com>
Mon, 21 Oct 2024 04:37:55 +0000 (21:37 -0700)
committerEshel Yaron <me@eshelyaron.com>
Tue, 29 Oct 2024 09:52:30 +0000 (10:52 +0100)
commit6d82dab66a36371f57ee4d1dafb76556aba2ca42
tree1893bebfa52ba6f1afa85ab985da9b75f782eff0
parent56cec5109bfe88b36ce5778e9fa5e7d26b0552a9
Fix Eshell incompatibility with "[" command when eshell-pred is disabled

* lisp/eshell/em-pred.el (eshell-pred-initialize): Ensure that
'eshell-parse-arg-modifier' is called before 'eshell-parse-glob-chars'.

* lisp/eshell/em-glob.el (eshell-glob-initialize): Use a number for hook
depth to be clearer.
(eshell-parse-glob-chars): Simplify; since eshell-pred's hook now runs
first, the extra code is no longer necessary.

* test/lisp/eshell/em-glob-tests.el
(em-glob-test/test-command-without-pred): New test.

(cherry picked from commit 523aade3ea11c188e30e3889f031d1848129cf82)
lisp/eshell/em-glob.el
lisp/eshell/em-pred.el
test/lisp/eshell/em-glob-tests.el