]> git.eshelyaron.com Git - emacs.git/commit
Avoid duplicated character classes in rx
authorMattias Engdegård <mattiase@acm.org>
Tue, 3 Dec 2019 14:17:37 +0000 (15:17 +0100)
committerMattias Engdegård <mattiase@acm.org>
Tue, 3 Dec 2019 14:17:37 +0000 (15:17 +0100)
commita6b598518c4bf6dfc587cfb2b61fa5fb04b99494
tree53a5dd14398ff04282ff98f7e97f4560b3f84b58
parenta05bafffdcb88df74408a8402cafc9829407c1e5
Avoid duplicated character classes in rx

For example, (any digit digit) should produce "[[:digit:]]",
not "[[:digit:][:digit:]]".

* lisp/emacs-lisp/rx.el (rx--translate-any): Deduplicate character classes.
* test/lisp/emacs-lisp/rx-tests.el (rx-any): Add test case.
lisp/emacs-lisp/rx.el
test/lisp/emacs-lisp/rx-tests.el