aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorMattias EngdegÄrd2019-10-07 18:07:16 +0200
committerMattias EngdegÄrd2019-10-18 14:45:47 +0200
commite5a446b0a706ddd4bedf973baeaf54f105198b09 (patch)
tree64c299b5c279b8acd257c0a964a4d183c68e8315 /test
parent2d13a3f68d4724af52e47675bedf60709c7b5171 (diff)
downloademacs-e5a446b0a706ddd4bedf973baeaf54f105198b09.tar.gz
emacs-e5a446b0a706ddd4bedf973baeaf54f105198b09.zip
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.el4
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 @@
184 "ab"))) 184 "ab")))
185 185
186(ert-deftest rx-atoms () 186(ert-deftest rx-atoms ()
187 (should (equal (rx anything) 187 (should (equal (rx anychar anything)
188 ".\\|\n")) 188 "\\(?:.\\|\n\\)\\(?:.\\|\n\\)"))
189 (should (equal (rx line-start not-newline nonl any line-end) 189 (should (equal (rx line-start not-newline nonl any line-end)
190 "^...$")) 190 "^...$"))
191 (should (equal (rx bol string-start string-end buffer-start buffer-end 191 (should (equal (rx bol string-start string-end buffer-start buffer-end