summaryrefslogtreecommitdiff
path: root/src/character.h
diff options
context:
space:
mode:
authorEli Zaretskii <eliz@gnu.org>2015-04-14 18:47:04 +0300
committerEli Zaretskii <eliz@gnu.org>2015-04-14 18:47:04 +0300
commit6c284c6b5828bc4407f7201499e0507ce0e5a0a0 (patch)
tree0e89f736a55245dc7e59725e57effb3b36b6dfe8 /src/character.h
parent8802474a219ad3be01825466a8837d3775f8b31b (diff)
downloademacs-6c284c6b5828bc4407f7201499e0507ce0e5a0a0.tar.gz
Make [:print:] support non-ASCII characters correctly
* src/regex.c (ISPRINT): Call 'printablep' for multibyte characters. (BIT_PRINT): New bit mask. (re_wctype_to_bit): Return BIT_PRINT for RECC_PRINT. * src/character.c (printablep): New function. * src/character.h (printablep): Add prototype. * lisp/emacs-lisp/rx.el (rx): Doc fix: document the new behavior of 'print', 'alnum', and 'alphabetic'. * doc/lispref/searching.texi (Char Classes): Document the new behavior of [:print:]. * etc/NEWS: Mention the new behavior of [:print:].
Diffstat (limited to 'src/character.h')
-rw-r--r--src/character.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/character.h b/src/character.h
index 7d902952db6..1a5d2c8a670 100644
--- a/src/character.h
+++ b/src/character.h
@@ -662,6 +662,7 @@ extern Lisp_Object string_escape_byte8 (Lisp_Object);
extern bool alphabeticp (int);
extern bool decimalnump (int);
+extern bool printablep (int);
/* Return a translation table of id number ID. */
#define GET_TRANSLATION_TABLE(id) \