aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-10-27 09:54:54 +0100
committerMattias EngdegÄrd2019-10-27 09:54:54 +0100
commitcbd439e785cd1e72c3eae39ed987fda357014bf8 (patch)
tree4a10729f3ce701b2d4827259d2bedcb1bcb21cd8 /doc
parent6e66d9a95c49f867da26ca897635f5e57561d0c7 (diff)
downloademacs-cbd439e785cd1e72c3eae39ed987fda357014bf8.tar.gz
emacs-cbd439e785cd1e72c3eae39ed987fda357014bf8.zip
Expand rx definitions inside (not ...)
* lisp/emacs-lisp/rx.el (rx--translate-not): * test/lisp/emacs-lisp/rx-tests.el (rx-not, rx-def-in-not): * doc/lispref/searching.texi (Rx Constructs, Extending Rx): Allow user-defined rx constructs to be expanded inside (not ...) forms, for better composability (bug#37849).
Diffstat (limited to 'doc')
-rw-r--r--doc/lispref/searching.texi4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 5178575a3bb..74b15cfc7fd 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -1214,7 +1214,7 @@ Corresponding string regexp: @samp{[@dots{}]}
1214@item @code{(not @var{charspec})} 1214@item @code{(not @var{charspec})}
1215@cindex @code{not} in rx 1215@cindex @code{not} in rx
1216Match a character not included in @var{charspec}. @var{charspec} can 1216Match a character not included in @var{charspec}. @var{charspec} can
1217be an @code{any}, @code{syntax} or @code{category} form, or a 1217be an @code{any}, @code{not}, @code{syntax} or @code{category} form, or a
1218character class.@* 1218character class.@*
1219Corresponding string regexp: @samp{[^@dots{}]}, @samp{\S@var{code}}, 1219Corresponding string regexp: @samp{[^@dots{}]}, @samp{\S@var{code}},
1220@samp{\C@var{code}} 1220@samp{\C@var{code}}
@@ -1581,7 +1581,7 @@ when they are used, not when they are defined.
1581User-defined forms are allowed wherever arbitrary @code{rx} 1581User-defined forms are allowed wherever arbitrary @code{rx}
1582expressions are expected; for example, in the body of a 1582expressions are expected; for example, in the body of a
1583@code{zero-or-one} form, but not inside @code{any} or @code{category} 1583@code{zero-or-one} form, but not inside @code{any} or @code{category}
1584forms. 1584forms. They are also allowed inside @code{not} forms.
1585@end itemize 1585@end itemize
1586 1586
1587@defmac rx-define name [arglist] rx-form 1587@defmac rx-define name [arglist] rx-form