aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorMattias Engdegård2019-02-15 19:27:48 +0100
committerMattias Engdegård2019-02-16 12:43:32 +0100
commit478bbf7c80e71ff84f0e4e1363bf86e93d9c51c3 (patch)
tree7d05c376a0299282d291eff879eedcc6f3d2651d /etc
parentaff0c585060b7cc92d52a32978c6aa64cf7e2a5e (diff)
downloademacs-478bbf7c80e71ff84f0e4e1363bf86e93d9c51c3.tar.gz
emacs-478bbf7c80e71ff84f0e4e1363bf86e93d9c51c3.zip
Prevent over-eager rx character range condensation
`rx' incorrectly considers character ranges between ASCII and raw bytes to cover all codes in-between, which includes all non-ASCII Unicode chars. This causes (any "\000-\377" ?Å) to be simplified to (any "\000-\377"), which is not at all the same thing: [\000-\377] really means [\000-\177\200-\377] (Bug#34492). * lisp/emacs-lisp/rx.el (rx-any-condense-range): Split ranges going from ASCII to raw bytes. * test/lisp/emacs-lisp/rx-tests.el (rx-char-any-raw-byte): Add test case. * etc/NEWS: Mention the overall change (Bug#33205).
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS8
1 files changed, 8 insertions, 0 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 70a50c02c4e..0cafbaae96c 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -1101,6 +1101,14 @@ subexpression.
1101When there is no menu for a mode, display the mode name after the 1101When there is no menu for a mode, display the mode name after the
1102indicator instead of just the indicator (which is sometimes cryptic). 1102indicator instead of just the indicator (which is sometimes cryptic).
1103 1103
1104** rx
1105
1106---
1107*** rx now handles raw bytes in character alternatives correctly,
1108when given in a string. Previously, '(any "\x80-\xff")' would match
1109characters U+0080...U+00FF. Now the expression matches raw bytes in
1110the 128...255 range, as expected.
1111
1104 1112
1105* New Modes and Packages in Emacs 27.1 1113* New Modes and Packages in Emacs 27.1
1106 1114