]> git.eshelyaron.com Git - emacs.git/commitdiff
checkdoc: Don't ask to disambiguate mode names
authorStefan Kangas <stefan@marxist.se>
Fri, 24 Sep 2021 21:42:08 +0000 (23:42 +0200)
committerStefan Kangas <stefan@marxist.se>
Fri, 24 Sep 2021 21:42:08 +0000 (23:42 +0200)
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Don't ask to disambiguate mode names.  (Bug#4110)

lisp/emacs-lisp/checkdoc.el

index 0862e66ac5d5cee97b6dcbd6604a5762409ec9f0..74c27343bc4cad3b1f5f462f41cec39995d036f6 100644 (file)
@@ -1653,7 +1653,10 @@ mouse-[0-3]\\)\\)\\>"))
                   me (match-end 1))
             (if (and sym (boundp sym) (fboundp sym)
                       checkdoc--disambiguate-symbol-flag
-                     (save-excursion
+                      ;; Mode names do not need disambiguating.  (Bug#4110)
+                      (not (string-match (rx "-mode" string-end)
+                                         (symbol-name sym)))
+                      (save-excursion
                        (goto-char mb)
                        (forward-word-strictly -1)
                        (not (looking-at