]> git.eshelyaron.com Git - emacs.git/commit
Replace lisp-mode-symbol-regexp with (rx lisp-mode-symbol)
authorMattias Engdegård <mattiase@acm.org>
Mon, 4 Jul 2022 12:12:24 +0000 (14:12 +0200)
committerMattias Engdegård <mattiase@acm.org>
Mon, 4 Jul 2022 12:56:11 +0000 (14:56 +0200)
commit544361d37f3877b2f10c362936a283f4a0b2fa71
treea006de13e1f07efb57993c10823469b0a5d70572
parent65df97f361ace8b7f272d050b56389eeb1a08b03
Replace lisp-mode-symbol-regexp with (rx lisp-mode-symbol)

This is shorter, simplifies use inside rx expressions, and removes
need for eval-when-compile elsewhere (for later exploitation).

* lisp/emacs-lisp/lisp-mode.el (lisp-mode-symbol): New rx-define.
(lisp-mode-symbol-regexp): Redefine using lisp-mode-symbol.
(lisp-imenu-generic-expression, lisp--el-match-keyword)
(lisp-fdefs, lisp-string-in-doc-position-p):
* lisp/emacs-lisp/checkdoc.el (checkdoc--error-bad-format-p):
* lisp/emacs-lisp/shorthands.el (shorthands-font-lock-shorthands):
Use lisp-mode-symbol instead of lisp-mode-symbol-regexp.
lisp/emacs-lisp/checkdoc.el
lisp/emacs-lisp/lisp-mode.el
lisp/emacs-lisp/shorthands.el