diff options
| author | Lute Kamstra | 2003-05-23 10:10:24 +0000 |
|---|---|---|
| committer | Lute Kamstra | 2003-05-23 10:10:24 +0000 |
| commit | d547e25f451cc3658cff147bcc0f0508322b6022 (patch) | |
| tree | 4482f4d47b9be80881b1daaac4df5170f643f3bc | |
| parent | c7dff41d3f1d1268ac61fbe7f3a025bb1fa985e9 (diff) | |
| download | emacs-d547e25f451cc3658cff147bcc0f0508322b6022.tar.gz emacs-d547e25f451cc3658cff147bcc0f0508322b6022.zip | |
(checkdoc-file-comments-engine): Use
`lm-commentary-end' to find the end of the commentary section.
| -rw-r--r-- | lisp/ChangeLog | 22 | ||||
| -rw-r--r-- | lisp/emacs-lisp/checkdoc.el | 26 |
2 files changed, 32 insertions, 16 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index a924bbd9f95..5e712f5ded8 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,25 @@ | |||
| 1 | 2003-05-23 Lute Kamstra <Lute.Kamstra@cwi.nl> | ||
| 2 | |||
| 3 | * emacs-lisp/lisp-mnt.el: Make the description of the library more | ||
| 4 | accurate. | ||
| 5 | (lm-any-header): New user option. | ||
| 6 | (lm-section-start): New function; rewrite of `lm-section-mark'. | ||
| 7 | (lm-section-mark): Make alias of `lm-section-start'. | ||
| 8 | (lm-section-end): New function. | ||
| 9 | (lm-code-start): New function; rewrite of `lm-code-mark'. | ||
| 10 | (lm-code-mark): Make alias of `lm-code-start'. | ||
| 11 | (lm-commentary-start): New function; rewrite of | ||
| 12 | `lm-commentary-mark'. | ||
| 13 | (lm-commentary-mark): Make alias of `lm-commentary-start'. | ||
| 14 | (lm-commentary-end): New function. | ||
| 15 | (lm-history-start): New function; rewrite of `lm-history-mark'. | ||
| 16 | (lm-history-mark): Make alias of `lm-history-start'. | ||
| 17 | (lm-commentary): Use `lm-commentary-end' to find the end of the | ||
| 18 | commentary section. | ||
| 19 | |||
| 20 | * emacs-lisp/checkdoc.el (checkdoc-file-comments-engine): Use | ||
| 21 | `lm-commentary-end' to find the end of the commentary section. | ||
| 22 | |||
| 1 | 2003-05-22 Ken Stevens <kstevens@ichips.intel.com> | 23 | 2003-05-22 Ken Stevens <kstevens@ichips.intel.com> |
| 2 | 24 | ||
| 3 | * ispell.el: Sync to version 3.6. | 25 | * ispell.el: Sync to version 3.6. |
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index f9d1cacdc25..a5fb3cede5e 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el | |||
| @@ -2346,22 +2346,16 @@ Code:, and others referenced in the style guide." | |||
| 2346 | ;; section that is easy to pick out, and it is also the most | 2346 | ;; section that is easy to pick out, and it is also the most |
| 2347 | ;; visible section (with the finder). | 2347 | ;; visible section (with the finder). |
| 2348 | (let ((cm (lm-commentary-mark))) | 2348 | (let ((cm (lm-commentary-mark))) |
| 2349 | (if cm | 2349 | (when cm |
| 2350 | (save-excursion | 2350 | (save-excursion |
| 2351 | (goto-char (lm-commentary-mark)) | 2351 | (goto-char cm) |
| 2352 | ;; Spellcheck between the commentary, and the first | 2352 | (let ((e (copy-marker (lm-commentary-end)))) |
| 2353 | ;; non-comment line. We could use lm-commentary, but that | 2353 | ;; Since the comments talk about Lisp, use the |
| 2354 | ;; returns a string, and Ispell wants to talk to a buffer. | 2354 | ;; specialized spell-checker we also used for doc |
| 2355 | ;; Since the comments talk about Lisp, use the specialized | 2355 | ;; strings. |
| 2356 | ;; spell-checker we also used for doc strings. | 2356 | (checkdoc-sentencespace-region-engine (point) e) |
| 2357 | (let ((e (save-excursion (re-search-forward "^[^;]" nil t) | 2357 | (checkdoc-proper-noun-region-engine (point) e) |
| 2358 | (point)))) | 2358 | (checkdoc-ispell-docstring-engine e))))) |
| 2359 | (checkdoc-sentencespace-region-engine (point) e) | ||
| 2360 | (checkdoc-proper-noun-region-engine (point) e) | ||
| 2361 | (checkdoc-ispell-docstring-engine e))))) | ||
| 2362 | ;;; test comment out code | ||
| 2363 | ;;; (foo 1 3) | ||
| 2364 | ;;; (bar 5 7) | ||
| 2365 | (setq | 2359 | (setq |
| 2366 | err | 2360 | err |
| 2367 | (or | 2361 | (or |