diff options
| author | Mattias EngdegÄrd | 2019-10-27 09:54:54 +0100 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2019-10-27 09:54:54 +0100 |
| commit | cbd439e785cd1e72c3eae39ed987fda357014bf8 (patch) | |
| tree | 4a10729f3ce701b2d4827259d2bedcb1bcb21cd8 /doc | |
| parent | 6e66d9a95c49f867da26ca897635f5e57561d0c7 (diff) | |
| download | emacs-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.texi | 4 |
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 |
| 1216 | Match a character not included in @var{charspec}. @var{charspec} can | 1216 | Match a character not included in @var{charspec}. @var{charspec} can |
| 1217 | be an @code{any}, @code{syntax} or @code{category} form, or a | 1217 | be an @code{any}, @code{not}, @code{syntax} or @code{category} form, or a |
| 1218 | character class.@* | 1218 | character class.@* |
| 1219 | Corresponding string regexp: @samp{[^@dots{}]}, @samp{\S@var{code}}, | 1219 | Corresponding 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. | |||
| 1581 | User-defined forms are allowed wherever arbitrary @code{rx} | 1581 | User-defined forms are allowed wherever arbitrary @code{rx} |
| 1582 | expressions are expected; for example, in the body of a | 1582 | expressions 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} |
| 1584 | forms. | 1584 | forms. 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 |