]> git.eshelyaron.com Git - emacs.git/commit
Add unit tests and documentation for Eshell predicates/modifiers
authorJim Porter <jporterbugs@gmail.com>
Sat, 19 Mar 2022 19:41:13 +0000 (12:41 -0700)
committerEli Zaretskii <eliz@gnu.org>
Sun, 17 Apr 2022 07:28:23 +0000 (10:28 +0300)
commit6358cbc21a816ac95c2e6e22e087ccd3736874bc
tree991f8731ca91f51f1c87380132b03b793c42c8ba
parentbbb92dde01ec3fc46b24247fb2d181a21dbcc40a
Add unit tests and documentation for Eshell predicates/modifiers

* lisp/eshell/esh-cmd.el (eshell-eval-argument): New function.
* lisp/eshell/esh-util.el (eshell-file-attributes): Pass original
value of FILE to 'file-attributes'.
* lisp/eshell/em-pred.el (eshell-predicate-alist): Change socket char
to '=', since 's' conflicts with setuid.
(eshell-modifier-alist): Fix 'E' (eval) modifier by using
'eshell-eval-argument'.  Also improve performance of 'O' (reversed
sort) modifier.
(eshell-modifier-help-string): Fix documentation of global
substitution modifier.
(eshell-pred-substitute): Fix infinite loop in some global
substitutions.
(eshell-join-members): Fix joining with implicit " " delimiter.
(Bug#54470)

* test/lisp/eshell/em-pred-tests.el: New file.

* doc/misc/eshell.texi (Argument Predication): New section.
doc/misc/eshell.texi
lisp/eshell/em-pred.el
lisp/eshell/esh-cmd.el
lisp/eshell/esh-util.el
test/lisp/eshell/em-pred-tests.el [new file with mode: 0644]