emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/el-search 59c6139 064/332: Complete and document what a


From: Stefan Monnier
Subject: [elpa] externals/el-search 59c6139 064/332: Complete and document what a SYMBOL in `l' matches
Date: Tue, 1 Dec 2020 15:48:12 -0500 (EST)

branch: externals/el-search
commit 59c6139a2b74bb7b952387d8554d712f854f1321
Author: Michael Heerdegen <michael_heerdegen@web.de>
Commit: Michael Heerdegen <michael_heerdegen@web.de>

    Complete and document what a SYMBOL in `l' matches
---
 el-search.el | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)

diff --git a/el-search.el b/el-search.el
index 57e4505..05378a8 100644
--- a/el-search.el
+++ b/el-search.el
@@ -664,7 +664,9 @@ matches any of these expressions:
 
 (defun el-search--s (expr)
   (cond
-   ((symbolp expr) `(symbol ,(symbol-name expr)))
+   ((symbolp expr) `(or (symbol ,(symbol-name expr))
+                        (,'\` (,'quote    (,'\, (symbol ,(symbol-name expr)))))
+                        (,'\` (,'function (,'\, (symbol ,(symbol-name 
expr)))))))
    ((stringp expr) `(string ,expr))
    (t expr)))
 
@@ -678,8 +680,8 @@ with very brief input by using a specialized syntax.
 
 An LPAT can take the following forms:
 
-SYMBOL  Matches any symbol matched by SYMBOL's name interpreted as
-        a regexp
+SYMBOL  Matches any symbol S matched by SYMBOL's name interpreted
+        as a regexp.  Matches also 'S and #'S for any such S.
 STRING  Matches any string matched by STRING interpreted as a
         regexp
 _       Matches any list element



reply via email to

[Prev in Thread] Current Thread [Next in Thread]