emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 79a9b50: checkdoc: Don't ask to disambiguate mode names


From: Stefan Kangas
Subject: master 79a9b50: checkdoc: Don't ask to disambiguate mode names
Date: Fri, 24 Sep 2021 17:43:17 -0400 (EDT)

branch: master
commit 79a9b50621ec22640358bd6b94b65d14d747c644
Author: Stefan Kangas <stefan@marxist.se>
Commit: Stefan Kangas <stefan@marxist.se>

    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)
---
 lisp/emacs-lisp/checkdoc.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 0862e66..74c2734 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]