diff options
author | Mattias EngdegÄrd <mattiase@acm.org> | 2019-10-07 18:07:16 +0200 |
---|---|---|
committer | Mattias EngdegÄrd <mattiase@acm.org> | 2019-10-18 14:45:47 +0200 |
commit | e5a446b0a706ddd4bedf973baeaf54f105198b09 (patch) | |
tree | 64c299b5c279b8acd257c0a964a4d183c68e8315 /test | |
parent | 2d13a3f68d4724af52e47675bedf60709c7b5171 (diff) | |
download | emacs-e5a446b0a706ddd4bedf973baeaf54f105198b09.tar.gz |
Add `anychar' as alias to `anything' in rx (bug#37659)
* lisp/emacs-lisp/rx.el (rx--translate-symbol, rx--builtin-symbols, rx):
* test/lisp/emacs-lisp/rx-tests.el (rx-atoms):
* doc/lispref/searching.texi (Rx Constructs):
* etc/NEWS:
Add `anychar', an alias for `anything'. Since `anychar' is more
descriptive (and slightly shorter), treat it as the preferred name.
Diffstat (limited to 'test')
-rw-r--r-- | test/lisp/emacs-lisp/rx-tests.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/emacs-lisp/rx-tests.el b/test/lisp/emacs-lisp/rx-tests.el index 76dcf419428..d4524e5a251 100644 --- a/test/lisp/emacs-lisp/rx-tests.el +++ b/test/lisp/emacs-lisp/rx-tests.el @@ -184,8 +184,8 @@ "ab"))) (ert-deftest rx-atoms () - (should (equal (rx anything) - ".\\|\n")) + (should (equal (rx anychar anything) + "\\(?:.\\|\n\\)\\(?:.\\|\n\\)")) (should (equal (rx line-start not-newline nonl any line-end) "^...$")) (should (equal (rx bol string-start string-end buffer-start buffer-end |