diff options
| author | Paul Eggert | 2015-04-15 00:26:32 -0700 |
|---|---|---|
| committer | Paul Eggert | 2015-04-15 00:27:18 -0700 |
| commit | a122a0276bddbda8ca84f9b94250a5a5f4e0582a (patch) | |
| tree | 4d0368943f2d0c53504e1e5e4727adaafd602d7e /doc | |
| parent | 45d75c0b758cf152698e83e180dfc8eed5d355ba (diff) | |
| download | emacs-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.texi | 14 |
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. | |||
| 558 | This matches @samp{0} through @samp{9}. Thus, @samp{[-+[:digit:]]} | 558 | This matches @samp{0} through @samp{9}. Thus, @samp{[-+[:digit:]]} |
| 559 | matches any digit, as well as @samp{+} and @samp{-}. | 559 | matches any digit, as well as @samp{+} and @samp{-}. |
| 560 | @item [:graph:] | 560 | @item [:graph:] |
| 561 | This matches graphic characters---everything except @acronym{ASCII} control | 561 | This matches graphic characters---everything except space, |
| 562 | characters, space, and the delete character. | 562 | @acronym{ASCII} and non-@acronym{ASCII} control characters, |
| 563 | surrogates, and codepoints unassigned by Unicode, as indicated by the | ||
| 564 | Unicode @samp{general-category} property (@pxref{Character | ||
| 565 | Properties}). | ||
| 563 | @item [:lower:] | 566 | @item [:lower:] |
| 564 | This matches any lower-case letter, as determined by the current case | 567 | This matches any lower-case letter, as determined by the current case |
| 565 | table (@pxref{Case Tables}). If @code{case-fold-search} is | 568 | table (@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:] |
| 570 | This matches any non-@acronym{ASCII} character. | 573 | This matches any non-@acronym{ASCII} character. |
| 571 | @item [:print:] | 574 | @item [:print:] |
| 572 | This matches printing characters---everything except @acronym{ASCII} | 575 | This matches any printing character---either space, or a graphic |
| 573 | and non-@acronym{ASCII} control characters (including the delete | 576 | character matched by @samp{[:graph:]}. |
| 574 | character), surrogates, and codepoints unassigned by Unicode, as | ||
| 575 | indicated by the Unicode @samp{general-category} property | ||
| 576 | (@pxref{Character Properties}). | ||
| 577 | @item [:punct:] | 577 | @item [:punct:] |
| 578 | This matches any punctuation character. (At present, for multibyte | 578 | This matches any punctuation character. (At present, for multibyte |
| 579 | characters, it matches anything that has non-word syntax.) | 579 | characters, it matches anything that has non-word syntax.) |