mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-03 10:31:37 -08:00
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:].
This commit is contained in:
parent
8802474a21
commit
6c284c6b58
6 changed files with 42 additions and 11 deletions
|
|
@ -969,16 +969,16 @@ CHAR
|
|||
space, and DEL.
|
||||
|
||||
`printing', `print'
|
||||
matches printing characters--everything except ASCII control chars
|
||||
and DEL.
|
||||
matches printing characters--everything except ASCII and non-ASCII
|
||||
control characters, surrogates, and codepoints unassigned by Unicode.
|
||||
|
||||
`alphanumeric', `alnum'
|
||||
matches letters and digits. (But at present, for multibyte characters,
|
||||
it matches anything that has word syntax.)
|
||||
matches alphabetic characters and digits. (For multibyte characters,
|
||||
it matches according to Unicode character properties.)
|
||||
|
||||
`letter', `alphabetic', `alpha'
|
||||
matches letters. (But at present, for multibyte characters,
|
||||
it matches anything that has word syntax.)
|
||||
matches alphabetic characters. (For multibyte characters,
|
||||
it matches according to Unicode character properties.)
|
||||
|
||||
`ascii'
|
||||
matches ASCII (unibyte) characters.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue