summaryrefslogtreecommitdiff
path: root/src/regex.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2015-04-15 23:45:08 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2015-04-15 23:47:01 -0700
commit3074a9fad1c7c57948521125ee947bfa11ae185b (patch)
tree9f13c9d28a6e54ea12c7096f0d34652ffce15f6e /src/regex.c
parent5161c9ca6a6107da30d411fb2ad72e01d08e5704 (diff)
downloademacs-3074a9fad1c7c57948521125ee947bfa11ae185b.tar.gz
'[:graph:]' now excludes whitespace, not just ' '
* doc/lispref/searching.texi (Char Classes): * lisp/emacs-lisp/rx.el (rx): Document [:graph:] to be [:print:] sans whitespace (not sans space). * src/character.c (graphicp): Exclude all Unicode whitespace chars, not just space. * src/regex.c (ISGRAPH): Exclude U+00A0 (NO-BREAK SPACE).
Diffstat (limited to 'src/regex.c')
-rw-r--r--src/regex.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regex.c b/src/regex.c
index 4af70c62cf5..38c5e350541 100644
--- a/src/regex.c
+++ b/src/regex.c
@@ -313,7 +313,7 @@ enum syntaxcode { Swhitespace = 0, Sword = 1, Ssymbol = 2 };
/* The rest must handle multibyte characters. */
# define ISGRAPH(c) (SINGLE_BYTE_CHAR_P (c) \
- ? (c) > ' ' && !((c) >= 0177 && (c) <= 0237) \
+ ? (c) > ' ' && !((c) >= 0177 && (c) <= 0240) \
: graphicp (c))
# define ISPRINT(c) (SINGLE_BYTE_CHAR_P (c) \