checkdoc: Don't ask to disambiguate mode names

* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Don't ask to disambiguate mode names.  (Bug#4110)
This commit is contained in:
Stefan Kangas 2021-09-24 23:42:08 +02:00
parent f17fb37c51
commit 79a9b50621

View 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