summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/checkdoc.el
diff options
context:
space:
mode:
authorMattias EngdegÄrd <mattiase@acm.org>2023-09-26 13:33:54 +0200
committerMattias EngdegÄrd <mattiase@acm.org>2023-09-26 13:33:54 +0200
commit215bfb24dd0de9ba2c82aea330cbb27985ad6eae (patch)
treeefe67cc1452185635624d5683187f2507f44f994 /lisp/emacs-lisp/checkdoc.el
parentd082f46c8cac02c3f871314c458a0bed43ce2ae4 (diff)
downloademacs-215bfb24dd0de9ba2c82aea330cbb27985ad6eae.tar.gz
emacs-215bfb24dd0de9ba2c82aea330cbb27985ad6eae.tar.bz2
emacs-215bfb24dd0de9ba2c82aea330cbb27985ad6eae.zip
; checkdoc.el: remove unnecessary regexp groups
* lisp/emacs-lisp/checkdoc.el (checkdoc-message-text-next-string): Remove remains from when the regexp was not written in rx.
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
-rw-r--r--lisp/emacs-lisp/checkdoc.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index cf7b7c318f6..440e133f44b 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -2584,11 +2584,11 @@ Argument END is the maximum bounds to search in."
(rx "("
(* (syntax whitespace))
(group
- (or (seq (* (group (or wordchar (syntax symbol))))
+ (or (seq (* (or wordchar (syntax symbol)))
"error")
- (seq (* (group (or wordchar (syntax symbol))))
+ (seq (* (or wordchar (syntax symbol)))
(or "y-or-n-p" "yes-or-no-p")
- (? (group "-with-timeout")))
+ (? "-with-timeout"))
"checkdoc-autofix-ask-replace"))
(+ (any "\n\t ")))
end t))