From 4281e5b34d47052f3f8aa07295032ba3a764c54e Mon Sep 17 00:00:00 2001 From: Mattias EngdegÄrd Date: Mon, 23 Aug 2021 17:02:51 +0200 Subject: 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`. --- lisp/emacs-lisp/rx.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'lisp/emacs-lisp/rx.el') 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. -- cgit v1.2.3