]> git.eshelyaron.com Git - emacs.git/commit
Add a new macro to simplify parsing temporary Eshell command strings
authorJim Porter <jporterbugs@gmail.com>
Sun, 27 Feb 2022 04:55:22 +0000 (20:55 -0800)
committerLars Ingebrigtsen <larsi@gnus.org>
Thu, 3 Mar 2022 13:59:33 +0000 (14:59 +0100)
commitae1acb601764009fc2551819f9193aa6e9441be4
tree568f5226afb3d3d42822c0996b8b196be2f04fd4
parent7c7a4c26cbabe2d84d008e193b7db8ae106e9e47
Add a new macro to simplify parsing temporary Eshell command strings

This abstracts out the somewhat-unusual "insert&delete" logic in
'eshell-parse-command' so that it can be used elsewhere, and also
ensures that the deletion occurs even if an an error occurs.

* lisp/eshell/esh-cmd.el (eshell-with-temp-command): New macro.
(eshell-parse-command): Use it.
lisp/eshell/esh-cmd.el