aboutsummaryrefslogtreecommitdiffstats
path: root/etc
diff options
context:
space:
mode:
authorPaul Eggert2015-04-15 00:26:32 -0700
committerPaul Eggert2015-04-15 00:27:18 -0700
commita122a0276bddbda8ca84f9b94250a5a5f4e0582a (patch)
tree4d0368943f2d0c53504e1e5e4727adaafd602d7e /etc
parent45d75c0b758cf152698e83e180dfc8eed5d355ba (diff)
downloademacs-a122a0276bddbda8ca84f9b94250a5a5f4e0582a.tar.gz
emacs-a122a0276bddbda8ca84f9b94250a5a5f4e0582a.zip
Make [:graph:] act like [:print:] sans space
In POSIX [[:print:]] is equivalent to [ [:graph:]], so change [:graph:] so that it matches everything that [:print:] does, except for space. * doc/lispref/searching.texi (Char Classes): * etc/NEWS: * lisp/emacs-lisp/rx.el (rx): Document [:graph:] to be [:print:] sans ' '. * src/character.c, src/character.h (graphicp): New function. * src/regex.c (ISGRAPH) [emacs]: Use it. (BIT_GRAPH): New macro. (BIT_PRINT): Increase to 0x200, to make room for BIT_GRAPH. (re_wctype_to_bit) [! WIDE_CHAR_SUPPORT]: Return BIT_GRAPH for RECC_GRAPH. (re_match_2_internal) [emacs]: Use ISGRAPH if BIT_GRAPH, and ISPRINT if BIT_PRINT.
Diffstat (limited to 'etc')
-rw-r--r--etc/NEWS10
1 files changed, 5 insertions, 5 deletions
diff --git a/etc/NEWS b/etc/NEWS
index 907787a1f3e..d97e80a7171 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -629,12 +629,12 @@ notifications, if Emacs is compiled with file notification support.
629*** gulp.el 629*** gulp.el
630 630
631+++ 631+++
632** The character class [:print:] in regular expressions 632** The character classes [:graph:] and [:print:] in regular expressions
633no longer matches any multibyte character. Instead, Emacs now 633no longer match every multibyte character. Instead, Emacs now
634consults the Unicode character properties to determine which 634consults the Unicode character properties to determine which
635characters are printable. In particular, surrogates and unassigned 635characters are graphic or printable. In particular, surrogates and
636codepoints are now rejected by this class. If you want the old 636unassigned codepoints are now rejected. If you want the old behavior,
637behavior, use [:multibyte:] instead. 637use [:multibyte:] instead.
638 638
639 639
640* New Modes and Packages in Emacs 25.1 640* New Modes and Packages in Emacs 25.1