aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/emacs-lisp/checkdoc.el18
1 files changed, 10 insertions, 8 deletions
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el
index 5fd428a904a..102e6850a1e 100644
--- a/lisp/emacs-lisp/checkdoc.el
+++ b/lisp/emacs-lisp/checkdoc.el
@@ -541,13 +541,14 @@ the users will view as each check is completed."
541 "Display and update the status buffer for the current checkdoc mode. 541 "Display and update the status buffer for the current checkdoc mode.
542CHECK is a vector stating the current status of each test as an 542CHECK is a vector stating the current status of each test as an
543element is the status of that level of teset." 543element is the status of that level of teset."
544 (with-output-to-temp-buffer " *Checkdoc Status*" 544 (let (temp-buffer-setup-hook)
545 (princ-list 545 (with-output-to-temp-buffer " *Checkdoc Status*"
546 "Buffer comments and tags: " (nth 0 check) "\n" 546 (princ-list
547 "Documentation style: " (nth 1 check) "\n" 547 "Buffer comments and tags: " (nth 0 check) "\n"
548 "Message/Query text style: " (nth 2 check) "\n" 548 "Documentation style: " (nth 1 check) "\n"
549 "Unwanted Spaces: " (nth 3 check) 549 "Message/Query text style: " (nth 2 check) "\n"
550 )) 550 "Unwanted Spaces: " (nth 3 check)
551 )))
551 (shrink-window-if-larger-than-buffer 552 (shrink-window-if-larger-than-buffer
552 (get-buffer-window " *Checkdoc Status*")) 553 (get-buffer-window " *Checkdoc Status*"))
553 (message nil) 554 (message nil)
@@ -1311,7 +1312,8 @@ See the style guide in the Emacs Lisp manual for more details."
1311 ;; Sometimes old code has comments where the documentation should 1312 ;; Sometimes old code has comments where the documentation should
1312 ;; be. Let's see if we can find the comment, and offer to turn it 1313 ;; be. Let's see if we can find the comment, and offer to turn it
1313 ;; into documentation for them. 1314 ;; into documentation for them.
1314 (let ((have-comment nil)) 1315 (let ((have-comment nil)
1316 (comment-start ";")) ; in case it's not default
1315 (condition-case nil 1317 (condition-case nil
1316 (progn 1318 (progn
1317 (forward-sexp -1) 1319 (forward-sexp -1)