]> git.eshelyaron.com Git - emacs.git/commitdiff
Make check-declare understand cl-defun
authorLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Jul 2019 14:49:23 +0000 (16:49 +0200)
committerLars Ingebrigtsen <larsi@gnus.org>
Sat, 13 Jul 2019 14:49:23 +0000 (16:49 +0200)
* lisp/emacs-lisp/check-declare.el (check-declare-verify): Add
cl-defun to the defun-ish regexp (bug#31396).

lisp/emacs-lisp/check-declare.el

index 0cb63bbe987f95fdd18679bdc3f2a0800788bc0d..903b4e12a2fb6443e0c42ea96a8884d0bc5dd404 100644 (file)
@@ -148,7 +148,7 @@ is a string giving details of the error."
           (setq re (format (if cflag
                                "^[ \t]*\\(DEFUN\\)[ \t]*([ \t]*\"%s\""
                              "^[ \t]*(\\(fset[ \t]+'\\|\
-cl-def\\(?:generic\\|method\\)\\|\
+cl-def\\(?:generic\\|method\\|un\\)\\|\
 def\\(?:un\\|subst\\|foo\\|method\\|class\\|\
 ine-\\(?:derived\\|generic\\|\\(?:global\\(?:ized\\)?-\\)?minor\\)-mode\\|\
 \\(?:ine-obsolete-function-\\)?alias[ \t]+'\\|\