aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-12-13 13:10:58 +0100
committerMattias EngdegÄrd2019-12-13 13:30:14 +0100
commit82b4e48c590cf2c0448a751e641b0ee7a6a02438 (patch)
tree55da830604ce9ebe4a5aa626bec285fb688578a3 /etc
parentb04086adf649b18cf5309dd43aa638fc7b3cd4a0 (diff)
downloademacs-82b4e48c590cf2c0448a751e641b0ee7a6a02438.tar.gz
emacs-82b4e48c590cf2c0448a751e641b0ee7a6a02438.zip
Allow characters and single-char strings in rx charsets
The `not' and `intersection' forms, and `or' inside these forms, now accept characters and single-character strings as arguments. Previously, they had to be wrapped in `any' forms. This does not add expressive power but is a convenience and is easily understood. * doc/lispref/searching.texi (Rx Constructs): Amend the documentation. * etc/NEWS: Announce the change. * lisp/emacs-lisp/rx.el (rx--charset-p, rx--translate-not) (rx--charset-intervals, rx): Accept characters and 1-char strings in more places. * test/lisp/emacs-lisp/rx-tests.el (rx-not, rx-charset-or) (rx-def-in-charset-or, rx-intersection): Test the change.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 1e0422c761f..a7f3c3d2fe8 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2124,6 +2124,9 @@ Both match any single character; 'anychar' is more descriptive.
2124With 'or' and 'not', it can be used to compose character-matching 2124With 'or' and 'not', it can be used to compose character-matching
2125expressions from simpler parts. 2125expressions from simpler parts.
2126 2126
2127+++
2128*** 'not' argument can now be a character or single-char string.
2129
2127** Frames 2130** Frames
2128 2131
2129+++ 2132+++