summaryrefslogtreecommitdiff
path: root/lisp/emacs-lisp/checkdoc.el
diff options
context:
space:
mode:
authorPhilipp Stephani <phst@google.com>2016-11-23 20:29:36 +0100
committerPhilipp Stephani <phst@google.com>2016-12-26 21:13:26 +0100
commit65b997b95e284e2edc1266663e39791f68d76ad7 (patch)
treef2027602be5963e7dba400a7ee247e9f4ca62f3a /lisp/emacs-lisp/checkdoc.el
parenta8a24b5be7f8cb6741f28000ae34c5b39ad9644e (diff)
downloademacs-65b997b95e284e2edc1266663e39791f68d76ad7.tar.gz
Checkdoc: Don't require a space before an arg list
See Bug#24998. * lisp/emacs-lisp/checkdoc.el (checkdoc-defun-regexp): Don't require a space before a argument list. * test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-tests--bug-24998): Add unit test.
Diffstat (limited to 'lisp/emacs-lisp/checkdoc.el')
-rw-r--r--lisp/emacs-lisp/checkdoc.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 769c2fe5741..2c8bc020d38 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -296,7 +296,7 @@ problem discovered. This is useful for adding additional checks.")
(defvar checkdoc-defun-regexp
"^(def\\(un\\|var\\|custom\\|macro\\|const\\|subst\\|advice\\)\
-\\s-+\\(\\(\\sw\\|\\s_\\)+\\)[ \t\n]+"
+\\s-+\\(\\(\\sw\\|\\s_\\)+\\)[ \t\n]*"
"Regular expression used to identify a defun.
A search leaves the cursor in front of the parameter list.")