]> git.eshelyaron.com Git - emacs.git/commit
Avoid using rx `any` for `not-newline`
authorMattias Engdegård <mattiase@acm.org>
Tue, 30 May 2023 08:04:48 +0000 (10:04 +0200)
committerMattias Engdegård <mattiase@acm.org>
Tue, 30 May 2023 15:44:53 +0000 (17:44 +0200)
commitace9f6775580459c35254607d866f3bb22a8c45b
treec22e33eaee9f2e15548580dafdebc645ed4688e6
parent08291e6f1755837d1cc0d5ac940bd39f7bcadd43
Avoid using rx `any` for `not-newline`

Despite its name, `any` does not match any character (use `anychar`
for that) but is an old synonym for `not-newline` and `nonl`,
retained for compatibility with the obsolete `sregex` package.

(In SRE as defined by SRFI-115, `any` does match any character.)

There is also a mild but unnecessary confusion with the more
frequently used `any` construct for character alternatives.

* lisp/edmacro.el (edmacro-mode-font-lock-keywords):
* lisp/erc/erc.el (erc--ensure-url):
* lisp/org/org.el (org-fontify-meta-lines-and-blocks-1):
* lisp/progmodes/scheme.el (scheme-imenu-generic-expression):
* test/lisp/find-cmd-tests.el (find-cmd-test-find-cmd):
Replace uses of `any` with `nonl`.
lisp/edmacro.el
lisp/erc/erc.el
lisp/org/org.el
lisp/progmodes/scheme.el
test/lisp/find-cmd-tests.el