Add support for Unicode whitespace in [:blank:]
commit512e9886be693f61f9d1932f19461bf4482fba51
authorPhilipp Stephani <phst@google.com>
Fri, 6 Jan 2017 14:56:51 +0000 (6 15:56 +0100)
committerPhilipp Stephani <phst@google.com>
Fri, 6 Jan 2017 19:12:48 +0000 (6 20:12 +0100)
tree84a9576c26b01fc8990e9290a3e52a3cb38c4550
parent8f0376309ee37e4f1da21d78971c4df2df5fd7b6
Add support for Unicode whitespace in [:blank:]

See Bug#25366.

* src/character.c (blankp): New function for checking Unicode
horizontal whitespace.
* src/regex.c (ISBLANK): Use 'blankp' for non-ASCII horizontal
whitespace.
(BIT_BLANK): New bit for range table.
(re_wctype_to_bit, execute_charset): Use it.
* test/lisp/subr-tests.el (subr-tests--string-match-p--blank): Add
unit test for [:blank:] character class.
* test/src/regex-tests.el (test): Adapt unit test.
* doc/lispref/searching.texi (Char Classes): Document new Unicode
behavior for [:blank:].
doc/lispref/searching.texi
etc/NEWS
src/character.c
src/character.h
src/regex.c
test/lisp/subr-tests.el
test/src/regex-tests.el