summaryrefslogtreecommitdiff
path: root/etc
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-04-14 18:47:04 +0300
committerEli Zaretskii <eliz@gnu.org>2015-04-14 18:47:04 +0300
commit6c284c6b5828bc4407f7201499e0507ce0e5a0a0 (patch)
tree0e89f736a55245dc7e59725e57effb3b36b6dfe8 /etc
parent8802474a219ad3be01825466a8837d3775f8b31b (diff)
downloademacs-6c284c6b5828bc4407f7201499e0507ce0e5a0a0.tar.gz
Make [:print:] support non-ASCII characters correctly
* src/regex.c (ISPRINT): Call 'printablep' for multibyte characters. (BIT_PRINT): New bit mask. (re_wctype_to_bit): Return BIT_PRINT for RECC_PRINT. * src/character.c (printablep): New function. * src/character.h (printablep): Add prototype. * lisp/emacs-lisp/rx.el (rx): Doc fix: document the new behavior of 'print', 'alnum', and 'alphabetic'. * doc/lispref/searching.texi (Char Classes): Document the new behavior of [:print:]. * etc/NEWS: Mention the new behavior of [:print:].
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 6d8b4c6faf8..907787a1f3e 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -628,6 +628,14 @@ notifications, if Emacs is compiled with file notification support.
---
*** gulp.el
++++
+** The character class [:print:] in regular expressions
+no longer matches any multibyte character. Instead, Emacs now
+consults the Unicode character properties to determine which
+characters are printable. In particular, surrogates and unassigned
+codepoints are now rejected by this class. If you want the old
+behavior, use [:multibyte:] instead.
+
* New Modes and Packages in Emacs 25.1