]> git.eshelyaron.com Git - emacs.git/commit
Make checkdoc work with qualified methods
authorMauro Aranda <maurooaranda@gmail.com>
Thu, 4 Mar 2021 11:34:58 +0000 (08:34 -0300)
committerMauro Aranda <maurooaranda@gmail.com>
Thu, 4 Mar 2021 11:34:58 +0000 (08:34 -0300)
commitfd9202304c8e08665c5dd468cdd56b523ffc7997
tree0c74769efd337828c6a8476572009165621ea092
parent2d435224689ab8b02b64ce78b6e9d061fe48df22
Make checkdoc work with qualified methods

* lisp/emacs-lisp/checkdoc.el (checkdoc--next-docstring): Handle
cl-defmethod in a case of its own.  Check for the presence of
qualifiers, and skip them accordingly until the docstring.

* test/lisp/emacs-lisp/checkdoc-tests.el (checkdoc-cl-defmethod-qualified-ok)
(checkdoc-cl-defmethod-with-extra-qualifier-ok)
(checkdoc-cl-defmethod-with-extra-and-nil-args-ok): Add tests for the fix.
lisp/emacs-lisp/checkdoc.el
test/lisp/emacs-lisp/checkdoc-tests.el