]> git.eshelyaron.com Git - emacs.git/commitdiff
Add "N.B." abbreviation to checkdoc
authorStefan Kangas <stefan@marxist.se>
Fri, 5 Nov 2021 21:31:42 +0000 (22:31 +0100)
committerStefan Kangas <stefan@marxist.se>
Fri, 5 Nov 2021 21:31:42 +0000 (22:31 +0100)
* lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Add
abbreviation "N.B.".

lisp/emacs-lisp/checkdoc.el

index 1ed210215a1e1731683e4f215c0cc3dd25398e0c..7bb82c2e8bf2d1f77a8a209c109cc8a5fc5e396a 100644 (file)
@@ -2129,13 +2129,11 @@ Examples of recognized abbreviations: \"e.g.\", \"i.e.\", \"cf.\"."
                ;; a part of a list.
                (rx letter ".")
              (rx (or
-                  ;; The abbreviations:
+                  ;; The abbreviations (a trailing dot is added below).
                   (seq (any "cC") "f")            ; cf.
                   (seq (any "eE") ".g")           ; e.g.
                   (seq (any "iI") "." (any "eE")) ; i.e.
-                  "a.k.a"                         ; a.k.a.
-                  "etc"                           ; etc.
-                  "vs"                            ; vs.
+                  "a.k.a" "etc" "vs" "N.B"
                   ;; Some non-standard or less common ones that we
                   ;; might as well accept.
                   "Inc" "Univ" "misc" "resp")