[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 6e1ee57c8ef: checkdoc: Don't warn for () in cl-defmacro args
From: |
Stefan Kangas |
Subject: |
master 6e1ee57c8ef: checkdoc: Don't warn for () in cl-defmacro args |
Date: |
Sun, 3 Sep 2023 09:39:26 -0400 (EDT) |
branch: master
commit 6e1ee57c8ef58c9426ed55e5255c2527f45549a4
Author: Stefan Kangas <stefankangas@gmail.com>
Commit: Stefan Kangas <stefankangas@gmail.com>
checkdoc: Don't warn for () in cl-defmacro args
Seen with, for example:
(cl-defmacro foo (bar () &body baz) ...)
* lisp/emacs-lisp/checkdoc.el (checkdoc-this-string-valid-engine):
Improve support for `cl-defmacro' by ignoring "nil" in parameter list.
---
lisp/emacs-lisp/checkdoc.el | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index e918ec1eebd..cf7b7c318f6 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -1793,7 +1793,7 @@ function,command,variable,option or symbol." ms1))))))
(order (and (nth 3 fp) (car (nth 3 fp))))
(nocheck (append '("&optional" "&rest" "&key" "&aux"
"&context" "&environment" "&whole"
- "&body" "&allow-other-keys")
+ "&body" "&allow-other-keys" "nil")
(nth 3 fp)))
(inopts nil))
(while (and args found (> found last-pos))
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 6e1ee57c8ef: checkdoc: Don't warn for () in cl-defmacro args,
Stefan Kangas <=