emacs-ipython-notebook/tests/checkdoc-batch.el
John Miller b431f57ce1 Squashed 'lib/markdown-mode/' content from commit 3f11a4a
git-subtree-dir: lib/markdown-mode
git-subtree-split: 3f11a4a7609ba2a507ee10f491bdadab28e9b985
2016-09-09 09:47:48 -05:00

10 lines
350 B
EmacsLisp

(require 'checkdoc)
(defun markdown-test--checkdoc-file (file)
"Check FILE for document, comment, error style, and rogue spaces.
Taken from Emacs 25 source."
(with-current-buffer (find-file-noselect file)
(let ((checkdoc-diagnostic-buffer "*warn*"))
(checkdoc-current-buffer t))))
(markdown-test--checkdoc-file "../markdown-mode.el")