diff options
author | Eli Zaretskii <eliz@gnu.org> | 2015-04-14 18:47:04 +0300 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 2015-04-14 18:47:04 +0300 |
commit | 6c284c6b5828bc4407f7201499e0507ce0e5a0a0 (patch) | |
tree | 0e89f736a55245dc7e59725e57effb3b36b6dfe8 /etc | |
parent | 8802474a219ad3be01825466a8837d3775f8b31b (diff) | |
download | emacs-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/NEWS | 8 |
1 files changed, 8 insertions, 0 deletions
@@ -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 |