[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/el-search b5b35ef 232/332: * el-search/el-search-x.el:
From: |
Stefan Monnier |
Subject: |
[elpa] externals/el-search b5b35ef 232/332: * el-search/el-search-x.el: Some more tweaks |
Date: |
Tue, 1 Dec 2020 15:48:52 -0500 (EST) |
branch: externals/el-search
commit b5b35efb8c9659c99d4229729a86a33212e303ff
Author: Michael Heerdegen <michael_heerdegen@web.de>
Commit: Michael Heerdegen <michael_heerdegen@web.de>
* el-search/el-search-x.el: Some more tweaks
---
el-search-x.el | 23 ++++++++++++-----------
1 file changed, 12 insertions(+), 11 deletions(-)
diff --git a/el-search-x.el b/el-search-x.el
index bbef588..1aeff7b 100644
--- a/el-search-x.el
+++ b/el-search-x.el
@@ -94,12 +94,12 @@ Example: the pattern
(append '(1 2 3) x (app car-safe 7))
-matches the list (1 2 3 4 5 6 7 8 9) and binds `x' to (4 5 6)."
+matches the list (1 2 3 4 5 6 7 8 9), binding `x' to (4 5 6)."
(if (null patterns)
'(pred null)
(pcase-let ((`(,pattern . ,more-patterns) patterns))
(cond
- ((null more-patterns) pattern)
+ ((null more-patterns) pattern)
((null (cdr more-patterns))
`(and (pred listp)
(app ,(apply-partially #'el-search--split
@@ -146,24 +146,25 @@ SYMBOL Matches any symbol S matched by SYMBOL's name
interpreted
STRING Matches any string matched by STRING interpreted as a
regexp.
_ Matches any list element.
-__ Matches any number of list elements (including zero).
+__ Matches any number (including zero) of list elements.
^ Matches zero elements, but only at the beginning of a list.
Only allowed as the first of the LPATS.
$ Matches zero elements, but only at the end of a list.
Only allowed as the last of the LPATS.
PAT Anything else is interpreted as a standard pattern and
- matches one list element matched by it. Note: If matching
- PAT binds any symbols, occurrences in any following PATs
- are not turned into equivalence tests; the scope of symbol
- bindings is limited to the PAT itself.
-
-Example: To match defuns that contain \"hl\" in their name and
-have at least one mandatory, but also optional arguments, you
+ matches one list element matched by it. Note: If
+ matching PAT binds any symbols, occurrences in any
+ following patterns are not turned into equivalence tests;
+ the scope of symbol bindings is limited to the PAT
+ itself.
+
+Example: To match defuns that contain \"hl\" in the defined name
+and have at least one mandatory, but also optional arguments, you
could use this pattern:
(l ^ 'defun hl (l _ &optional))"
;; We don't allow PATs in `l' to create bindings because to make this
- ;; work as expected we would need backtracking
+ ;; work as expected we would need some kind of backtracking
(declare
(heuristic-matcher
(lambda (&rest lpats)
- [elpa] externals/el-search 2f427dd 318/332: [el-search] Query-replace: Change skip keys, (continued)
- [elpa] externals/el-search 2f427dd 318/332: [el-search] Query-replace: Change skip keys, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search a5dd88c 322/332: [el-search] Minor fix in el-search-query-replace--read-args, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 1939340 324/332: [el-search] Harmonize search and qu-replace prefix arg, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 43779b9 329/332: [el-search] Improve "New command el-search-repository", Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 0c25a34 331/332: Update copyright years of some packages, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search cd535ba 194/332: packages/el-search: Some minor tweaks, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 368a5dd 195/332: * el-search/el-search.el: Declare doc-string in el-search-defpattern, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search f1ebc2e 201/332: * el-search/el-search.el: Get rid of orgstruct-mode, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 5eb7614 206/332: Tweak el-search--get-search-description-string, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 179aa59 209/332: * el-search/el-search.el: Bump version to 1.5, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search b5b35ef 232/332: * el-search/el-search-x.el: Some more tweaks,
Stefan Monnier <=
- [elpa] externals/el-search 63172a4 222/332: Treat inserted replacements as potential to-replace candidates, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search e0e2994 111/332: Some details, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search f26277b 117/332: Rewrite of el-search for version 1.0, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 1ef4266 114/332: Make el-search--make-docstring require a NAME argument, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 278a930 125/332: Speed up multi searching; version 1.1, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 0c2f0e5 127/332: Don't use the non-word "heuristical", Stefan Monnier, 2020/12/01
- [elpa] externals/el-search a38665c 115/332: Add section "Patterns for stylistic rewriting" and pattern `iffy-if', Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 8fdb91d 124/332: New command `el-search-load-path', Stefan Monnier, 2020/12/01
- [elpa] externals/el-search 4202501 148/332: el-search version 1.3: Lots of fixes and improvements, Stefan Monnier, 2020/12/01
- [elpa] externals/el-search d54491c 147/332: Add a FILE argument to `el-search-dired-marked-files', Stefan Monnier, 2020/12/01