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 /lisp | |
| 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 'lisp')
| -rw-r--r-- | lisp/emacs-lisp/rx.el | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/emacs-lisp/rx.el b/lisp/emacs-lisp/rx.el index a5a228e5876..ab9beb60928 100644 --- a/lisp/emacs-lisp/rx.el +++ b/lisp/emacs-lisp/rx.el | |||
| @@ -965,12 +965,12 @@ CHAR | |||
| 965 | matches space and tab only. | 965 | matches space and tab only. |
| 966 | 966 | ||
| 967 | `graphic', `graph' | 967 | `graphic', `graph' |
| 968 | matches graphic characters--everything except ASCII control chars, | 968 | matches graphic characters--everything except space, ASCII |
| 969 | space, and DEL. | 969 | and non-ASCII control characters, surrogates, and codepoints |
| 970 | unassigned by Unicode. | ||
| 970 | 971 | ||
| 971 | `printing', `print' | 972 | `printing', `print' |
| 972 | matches printing characters--everything except ASCII and non-ASCII | 973 | matches space and graphic characters. |
| 973 | control characters, surrogates, and codepoints unassigned by Unicode. | ||
| 974 | 974 | ||
| 975 | `alphanumeric', `alnum' | 975 | `alphanumeric', `alnum' |
| 976 | matches alphabetic characters and digits. (For multibyte characters, | 976 | matches alphabetic characters and digits. (For multibyte characters, |