summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2021-08-23 17:02:51 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2021-08-23 19:57:17 +0200
commit4281e5b34d47052f3f8aa07295032ba3a764c54e (patch)
tree5d7b8a7f0781011b0ae19e2bc3823cb4693b738e /lisp/emacs-lisp
parent976594d905ceacc3c351735ba099ac71ea31f014 (diff)
downloademacs-4281e5b34d47052f3f8aa07295032ba3a764c54e.tar.gz
emacs-4281e5b34d47052f3f8aa07295032ba3a764c54e.tar.bz2
emacs-4281e5b34d47052f3f8aa07295032ba3a764c54e.zip
Add example of advanced user-defined Rx form to manual
* doc/lispref/searching.texi (Extending Rx): Add example illustrating how to define a user-defined Rx form that performs computation, from a discussion with Michael Herdeegen (bug#50136). * lisp/emacs-lisp/rx.el (rx): Clarify evaluation time for `eval`.
Diffstat (limited to 'lisp/emacs-lisp')
-rw-r--r--lisp/emacs-lisp/rx.el3
1 files changed, 2 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el
index 071d390f0e4..c48052dee9e 100644
--- a/lisp/emacs-lisp/rx.el
+++ b/lisp/emacs-lisp/rx.el
@@ -1266,7 +1266,8 @@ Zero-width assertions: these all match the empty string in specific places.
(literal EXPR) Match the literal string from evaluating EXPR at run time.
(regexp EXPR) Match the string regexp from evaluating EXPR at run time.
-(eval EXPR) Match the rx sexp from evaluating EXPR at compile time.
+(eval EXPR) Match the rx sexp from evaluating EXPR at macro-expansion
+ (compile) time.
Additional constructs can be defined using `rx-define' and `rx-let',
which see.