# HG changeset patch # User Lute Kamstra # Date 1053684592 0 # Node ID 46ef9a32655864085f76c799d62e7ab6ce98dcb0 # Parent c10e341483da19a37510b078e0907b53db5571e6 (checkdoc-file-comments-engine): Use `lm-commentary-end' to find the end of the commentary section. diff -r c10e341483da -r 46ef9a326558 lisp/emacs-lisp/checkdoc.el --- a/lisp/emacs-lisp/checkdoc.el Fri May 23 10:08:34 2003 +0000 +++ b/lisp/emacs-lisp/checkdoc.el Fri May 23 10:09:52 2003 +0000 @@ -2346,22 +2346,16 @@ ;; section that is easy to pick out, and it is also the most ;; visible section (with the finder). (let ((cm (lm-commentary-mark))) - (if cm - (save-excursion - (goto-char (lm-commentary-mark)) - ;; Spellcheck between the commentary, and the first - ;; non-comment line. We could use lm-commentary, but that - ;; returns a string, and Ispell wants to talk to a buffer. - ;; Since the comments talk about Lisp, use the specialized - ;; spell-checker we also used for doc strings. - (let ((e (save-excursion (re-search-forward "^[^;]" nil t) - (point)))) - (checkdoc-sentencespace-region-engine (point) e) - (checkdoc-proper-noun-region-engine (point) e) - (checkdoc-ispell-docstring-engine e))))) -;;; test comment out code -;;; (foo 1 3) -;;; (bar 5 7) + (when cm + (save-excursion + (goto-char cm) + (let ((e (copy-marker (lm-commentary-end)))) + ;; Since the comments talk about Lisp, use the + ;; specialized spell-checker we also used for doc + ;; strings. + (checkdoc-sentencespace-region-engine (point) e) + (checkdoc-proper-noun-region-engine (point) e) + (checkdoc-ispell-docstring-engine e))))) (setq err (or