aboutsummaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorPaul Eggert2015-04-15 00:26:32 -0700
committerPaul Eggert2015-04-15 00:27:18 -0700
commita122a0276bddbda8ca84f9b94250a5a5f4e0582a (patch)
tree4d0368943f2d0c53504e1e5e4727adaafd602d7e /doc
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 'doc')
-rw-r--r--doc/lispref/searching.texi14
1 files changed, 7 insertions, 7 deletions
diff --git a/doc/lispref/searching.texi b/doc/lispref/searching.texi
index 238d814a9dc..10ea411d436 100644
--- a/doc/lispref/searching.texi
+++ b/doc/lispref/searching.texi
@@ -558,8 +558,11 @@ This matches any @acronym{ASCII} control character.
558This matches @samp{0} through @samp{9}. Thus, @samp{[-+[:digit:]]} 558This matches @samp{0} through @samp{9}. Thus, @samp{[-+[:digit:]]}
559matches any digit, as well as @samp{+} and @samp{-}. 559matches any digit, as well as @samp{+} and @samp{-}.
560@item [:graph:] 560@item [:graph:]
561This matches graphic characters---everything except @acronym{ASCII} control 561This matches graphic characters---everything except space,
562characters, space, and the delete character. 562@acronym{ASCII} and non-@acronym{ASCII} control characters,
563surrogates, and codepoints unassigned by Unicode, as indicated by the
564Unicode @samp{general-category} property (@pxref{Character
565Properties}).
563@item [:lower:] 566@item [:lower:]
564This matches any lower-case letter, as determined by the current case 567This matches any lower-case letter, as determined by the current case
565table (@pxref{Case Tables}). If @code{case-fold-search} is 568table (@pxref{Case Tables}). If @code{case-fold-search} is
@@ -569,11 +572,8 @@ This matches any multibyte character (@pxref{Text Representations}).
569@item [:nonascii:] 572@item [:nonascii:]
570This matches any non-@acronym{ASCII} character. 573This matches any non-@acronym{ASCII} character.
571@item [:print:] 574@item [:print:]
572This matches printing characters---everything except @acronym{ASCII} 575This matches any printing character---either space, or a graphic
573and non-@acronym{ASCII} control characters (including the delete 576character matched by @samp{[:graph:]}.
574character), surrogates, and codepoints unassigned by Unicode, as
575indicated by the Unicode @samp{general-category} property
576(@pxref{Character Properties}).
577@item [:punct:] 577@item [:punct:]
578This matches any punctuation character. (At present, for multibyte 578This matches any punctuation character. (At present, for multibyte
579characters, it matches anything that has non-word syntax.) 579characters, it matches anything that has non-word syntax.)