]> git.eshelyaron.com Git - emacs.git/commit
Apply Eshell tilde expansion before glob expansion
authorJim Porter <jporterbugs@gmail.com>
Sat, 2 Sep 2023 23:17:27 +0000 (16:17 -0700)
committerJim Porter <jporterbugs@gmail.com>
Sat, 2 Sep 2023 23:17:27 +0000 (16:17 -0700)
commit781c03933eff38ab4db8ad08a54e8a235d33d861
treedbae96f62faae24c1c65b69724ddff03f9912768
parentb0427f5ffe17c5a2a2aa0d993b164739c16193c0
Apply Eshell tilde expansion before glob expansion

By treating 'eshell-current-modifiers' as a hook, we can simplify much
of the code working with it and ensure that we call modifiers in a
more-correct order.

* lisp/eshell/em-dirs.el (eshell-expand-user-reference-1)
(eshell-expand-user-reference): Simplify.  We now only get a single
argument.
(eshell-parse-user-reference):
* lisp/eshell/em-glob.el (eshell-add-glob-modifier):
* lisp/eshell/em-pred.el (eshell-parse-arg-modifier): Use 'add-hook'.
lisp/eshell/em-dirs.el
lisp/eshell/em-glob.el
lisp/eshell/em-pred.el