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 /src/character.h | |
| 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 'src/character.h')
| -rw-r--r-- | src/character.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/character.h b/src/character.h index 1a5d2c8a670..859d717a0ba 100644 --- a/src/character.h +++ b/src/character.h | |||
| @@ -662,6 +662,7 @@ extern Lisp_Object string_escape_byte8 (Lisp_Object); | |||
| 662 | 662 | ||
| 663 | extern bool alphabeticp (int); | 663 | extern bool alphabeticp (int); |
| 664 | extern bool decimalnump (int); | 664 | extern bool decimalnump (int); |
| 665 | extern bool graphicp (int); | ||
| 665 | extern bool printablep (int); | 666 | extern bool printablep (int); |
| 666 | 667 | ||
| 667 | /* Return a translation table of id number ID. */ | 668 | /* Return a translation table of id number ID. */ |