1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-21 05:21:37 -07:00
emacs/lisp/eshell
Jim Porter ade1424a97 Use a common set of string delimiters for all Eshell predicates/modifiers
* lisp/eshell/em-pred.el (eshell-pred-delimiter-pairs): New variable.
(eshell-get-comparison-modifier-argument)
(eshell-get-numeric-modifier-argument)
(eshell-get-delimited-modifier-argument): New functions...
(eshell-pred-user-or-group, eshell-pred-file-time)
(eshell-pred-file-links, eshell-pred-file-size)
(eshell-pred-substitute, eshell-join-memebers, eshell-split-members):
... and use them here.
(eshell-include-members): Pass 'mod-char' and use
'eshell-get-delimited-modifier-argument'.
(eshell-pred-file-type, eshell-pred-file-mode): Use 'when-let'.
(eshell-modifier-alist): Pass modifier char to
'eshell-include-members'.

* test/lisp/eshell/em-pred-tests.el
(em-pred-test/predicate-delimiters): New test.
(em-pred-test/predicate-uid, em-pred-test/predicate-gid,
em-pred-test/modifier-include, em-pred-test/modifier-exclude): Remove
cases covered by 'em-pred-test/predicate-delimiters'.
(em-pred-test/modifier-substitute): Add test cases for new delimiter
styles.

* doc/misc/eshell.texi (Argument Predication and Modification):
Explain how string parameters are delimited.
(Argument Modifiers): Document some special delimiter behavior with
the 's/PATTERN/REPLACE/' modifier (bug#55204).

* etc/NEWS: Announce this change, and move the
'eshell-eval-using-options' entry to the Eshell section.
2022-05-01 20:41:18 +02:00
..
em-alias.el
em-banner.el
em-basic.el Don't use 'eshell-convert' when all we want is a number 2022-03-29 16:50:48 +02:00
em-cmpl.el Pcomplete: Better obey completion-at-point-functions 2022-03-18 11:59:32 -04:00
em-dirs.el Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
em-elecslash.el New electric forward slash Eshell module 2022-04-21 11:57:12 -07:00
em-extpipe.el em-extpipe: Catch eshell-incomplete thrown while parsing 2022-04-02 16:08:41 +02:00
em-glob.el Add unit tests and documentation for Eshell pattern-based globs 2022-04-17 10:27:39 +03:00
em-hist.el Don't use 'eshell-convert' when all we want is a number 2022-03-29 16:50:48 +02:00
em-ls.el Make eshell link faces more distinctive on 8-color displays 2022-03-22 16:33:43 +01:00
em-pred.el Use a common set of string delimiters for all Eshell predicates/modifiers 2022-05-01 20:41:18 +02:00
em-prompt.el
em-rebind.el
em-script.el
em-smart.el
em-term.el
em-tramp.el
em-unix.el
em-xtra.el
esh-arg.el
esh-cmd.el Add unit tests and documentation for Eshell predicates/modifiers 2022-04-17 10:28:23 +03:00
esh-ext.el Fix eshell-explicit-command-char doc string typo 2022-03-25 19:02:04 +01:00
esh-io.el
esh-mode.el
esh-module.el
esh-opt.el
esh-proc.el
esh-util.el Add unit tests and documentation for Eshell predicates/modifiers 2022-04-17 10:28:23 +03:00
esh-var.el Audit quoting the quote character in doc strings 2022-04-22 16:17:22 +02:00
eshell.el