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.
This commit is contained in:
parent
a8a24b5be7
commit
65b997b95e
2 changed files with 41 additions and 1 deletions
|
@ -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.")
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue