>From bb5324675821876c2baf4d6b7ba18b6db614c4ea Mon Sep 17 00:00:00 2001 From: Oleh Krehel Date: Wed, 20 May 2015 16:03:06 +0200 Subject: [PATCH] Add batch checkdoc testing * lisp/Makefile.in: New target "checkdoc". * lisp/do-checkdoc.el: A sample file that checks the docstrings in "subr.el". --- lisp/Makefile.in | 5 ++++- lisp/do-checkdoc.el | 4 ++++ 2 files changed, 8 insertions(+), 1 deletion(-) create mode 100644 lisp/do-checkdoc.el diff --git a/lisp/Makefile.in b/lisp/Makefile.in index 22d5ddc..522029d 100644 --- a/lisp/Makefile.in +++ b/lisp/Makefile.in @@ -471,7 +471,7 @@ distclean: maintainer-clean: distclean bootstrap-clean rm -f TAGS -.PHONY: check-declare +.PHONY: check-declare checkdoc check-declare: $(emacs) -l check-declare --eval '(check-declare-directory "$(lisp)")' @@ -481,6 +481,9 @@ check-defun-dups: $$(find . -name '*.el' -print | grep -v 'loaddefs\.el') \ | sort | uniq -d +checkdoc: + $(emacs) -batch -l do-checkdoc.el + # Dependencies ## None of the following matters for bootstrap, which is the only way diff --git a/lisp/do-checkdoc.el b/lisp/do-checkdoc.el new file mode 100644 index 0000000..8282e23 --- /dev/null +++ b/lisp/do-checkdoc.el @@ -0,0 +1,4 @@ +(require 'checkdoc) +(dolist (file '("subr.el")) + (with-current-buffer (find-file file) + (checkdoc-current-buffer t))) -- 1.8.4