From b12b278c2aeda4fd0d9984d319ead609117f14f4 Mon Sep 17 00:00:00 2001 From: Stefan Kangas Date: Thu, 23 Sep 2021 22:58:12 +0200 Subject: [PATCH] checkdoc: Add abbreviation and simplify * lisp/emacs-lisp/checkdoc.el (checkdoc-in-abbreviation-p): Add abbreviation "a.k.a.". Simplify. --- lisp/emacs-lisp/checkdoc.el | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index 4243e828001..cae65eba8ea 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el @@ -2113,11 +2113,12 @@ Examples of abbreviations handled: \"e.g.\", \"i.e.\", \"cf.\"." (rx letter ".") (rx (or ;; The abbreviations: - (seq (or (seq (any "cC") "f") ; cf. - (seq (any "eE") ".g") ; e.g. - (seq (any "iI") "." (any "eE")))) ; i.e. - "etc" ; etc. - "vs" ; vs. + (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. ;; Some non-standard or less common ones that we ;; might as well ignore. "Inc" "Univ" "misc" "resp") -- 2.39.2