Document that [:cntrl:] does not match DEL (Bug#34391)
* doc/lispref/searching.texi (Character Classes): * lisp/emacs-lisp/rx.el (rx): Document that [:cntrl:] excludes DEL. * test/src/regex-emacs-tests.el (regex-tests-PTESTS-whitelist): Swap misplaced comments and fix wrong code for DEL.
This commit is contained in:
parent
459869a528
commit
c8c6ad2429
3 changed files with 5 additions and 5 deletions
|
@ -559,7 +559,7 @@ tabs, and other characters whose Unicode @samp{general-category}
|
|||
property (@pxref{Character Properties}) indicates they are spacing
|
||||
separators.
|
||||
@item [:cntrl:]
|
||||
This matches any @acronym{ASCII} control character.
|
||||
This matches any character whose code is in the range 0--31.
|
||||
@item [:digit:]
|
||||
This matches @samp{0} through @samp{9}. Thus, @samp{[-+[:digit:]]}
|
||||
matches any digit, as well as @samp{+} and @samp{-}.
|
||||
|
|
|
@ -964,7 +964,7 @@ CHAR
|
|||
matches 0 through 9.
|
||||
|
||||
`control', `cntrl'
|
||||
matches ASCII control characters.
|
||||
matches any character whose code is in the range 0-31.
|
||||
|
||||
`hex-digit', `hex', `xdigit'
|
||||
matches 0 through 9, a through f and A through F.
|
||||
|
|
|
@ -555,11 +555,11 @@ differences in behavior.")
|
|||
|
||||
(defconst regex-tests-PTESTS-whitelist
|
||||
[
|
||||
;; emacs doesn't barf on weird ranges such as [b-a], but simply
|
||||
;; fails to match
|
||||
;; emacs doesn't see DEL (0x7f) as a [:cntrl:] character
|
||||
138
|
||||
|
||||
;; emacs doesn't see DEL (0x78) as a [:cntrl:] character
|
||||
;; emacs doesn't barf on weird ranges such as [b-a], but simply
|
||||
;; fails to match
|
||||
168
|
||||
]
|
||||
"Line numbers in the PTESTS test that should be skipped. These
|
||||
|
|
Loading…
Add table
Reference in a new issue