]> git.eshelyaron.com Git - emacs.git/commit
Signal an error for the regexp "[:alnum:]"
authorMattias Engdegård <mattiase@acm.org>
Wed, 26 Feb 2020 13:46:01 +0000 (14:46 +0100)
committerMattias Engdegård <mattiase@acm.org>
Wed, 26 Feb 2020 21:09:17 +0000 (22:09 +0100)
commit8d5e8cddab732ac90e9ae930c63f7830f9dab24f
tree6db0e10a351f5d1292a67f4c02c3eefeb00b9714
parent2261f89324997351a41d8f12af513b8ec5e9c26b
Signal an error for the regexp "[:alnum:]"

Omitting the extra brackets is a common mistake; see discussion at
https://lists.gnu.org/archive/html/emacs-devel/2020-02/msg00215.html

* src/regex-emacs.c (reg_errcode_t, re_error_msgid): Add REG_ECLASSBR.
(regex_compile): Check for the mistake.
* test/src/regex-emacs-tests.el (regexp-invalid): Test.
* etc/NEWS: Announce.
etc/NEWS
src/regex-emacs.c
test/src/regex-emacs-tests.el