Changeset 4161 for trunk/lisp/emacs-lisp/checkdoc.el
- Timestamp:
- 09/09/06 16:30:10 (2 years ago)
- Files:
-
- trunk/lisp/emacs-lisp/checkdoc.el (modified) (12 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/lisp/emacs-lisp/checkdoc.el
r4037 r4161 194 194 (defvar compilation-mode-font-lock-keywords) 195 195 196 (defgroup checkdoc nil 197 "Support for doc string checking in Emacs Lisp." 198 :prefix "checkdoc" 199 :group 'lisp 200 :version "20.3") 201 196 202 (defcustom checkdoc-autofix-flag 'semiautomatic 197 " *Non-nil means attempt auto-fixing of doc strings.203 "Non-nil means attempt auto-fixing of doc strings. 198 204 If this value is the symbol `query', then the user is queried before 199 205 any change is made. If the value is `automatic', then all changes are … … 209 215 210 216 (defcustom checkdoc-bouncy-flag t 211 " *Non-nil means to \"bounce\" to auto-fix locations.217 "Non-nil means to \"bounce\" to auto-fix locations. 212 218 Setting this to nil will silently make fixes that require no user 213 219 interaction. See `checkdoc-autofix-flag' for auto-fixing details." … … 216 222 217 223 (defcustom checkdoc-force-docstrings-flag t 218 " *Non-nil means that all checkable definitions should have documentation.224 "Non-nil means that all checkable definitions should have documentation. 219 225 Style guide dictates that interactive functions MUST have documentation, 220 226 and that it's good but not required practice to make non user visible items … … 222 228 :group 'checkdoc 223 229 :type 'boolean) 230 (put 'checkdoc-force-docstrings-flag 'safe-local-variable 'booleanp) 224 231 225 232 (defcustom checkdoc-force-history-flag t 226 " *Non-nil means that files should have a History section or ChangeLog file.233 "Non-nil means that files should have a History section or ChangeLog file. 227 234 This helps document the evolution of, and recent changes to, the package." 228 235 :group 'checkdoc … … 230 237 231 238 (defcustom checkdoc-permit-comma-termination-flag nil 232 " *Non-nil means the first line of a docstring may end with a comma.239 "Non-nil means the first line of a docstring may end with a comma. 233 240 Ordinarily, a full sentence is required. This may be misleading when 234 241 there is a substantial caveat to the one-line description -- the comma … … 237 244 :group 'checkdoc 238 245 :type 'boolean) 246 (put 'checkdoc-permit-comma-termination-flag 'safe-local-variable 'booleanp) 239 247 240 248 (defcustom checkdoc-spellcheck-documentation-flag nil 241 " *Non-nil means run Ispell on text based on value.249 "Non-nil means run Ispell on text based on value. 242 250 This is automatically set to nil if Ispell does not exist on your 243 251 system. Possible values are: … … 260 268 261 269 (defcustom checkdoc-max-keyref-before-warn 10 262 " *The number of \\ [command-to-keystroke] tokens allowed in a doc string.270 "The number of \\ [command-to-keystroke] tokens allowed in a doc string. 263 271 Any more than this and a warning is generated suggesting that the construct 264 272 \\ {keymap} be used instead." … … 267 275 268 276 (defcustom checkdoc-arguments-in-order-flag t 269 " *Non-nil means warn if arguments appear out of order.277 "Non-nil means warn if arguments appear out of order. 270 278 Setting this to nil will mean only checking that all the arguments 271 279 appear in the proper form in the documentation, not that they are in … … 299 307 300 308 (defcustom checkdoc-verb-check-experimental-flag t 301 " *Non-nil means to attempt to check the voice of the doc string.309 "Non-nil means to attempt to check the voice of the doc string. 302 310 This check keys off some words which are commonly misused. See the 303 311 variable `checkdoc-common-verbs-wrong-voice' if you wish to add your own." … … 2254 2262 (re-search-forward "^(require" nil t) 2255 2263 (re-search-forward "^(" nil t)) 2256 (beginning-of-line))) 2264 (beginning-of-line)) 2265 (t (re-search-forward ";;; .* --- .*\n"))) 2257 2266 (if (checkdoc-y-or-n-p 2258 2267 "You should have a \";;; Commentary:\", add one? ") … … 2634 2643 nil))) 2635 2644 2636 (defgroup checkdoc nil2637 "Support for doc string checking in Emacs Lisp."2638 :prefix "checkdoc"2639 :group 'lisp2640 :version "20.3")2641 2642 2645 (custom-add-option 'emacs-lisp-mode-hook 2643 2646 (lambda () (checkdoc-minor-mode 1))) … … 2651 2654 (provide 'checkdoc) 2652 2655 2653 ;; ;arch-tag: c49a7ec8-3bb7-46f2-bfbc-d5f26e033b262656 ;; arch-tag: c49a7ec8-3bb7-46f2-bfbc-d5f26e033b26 2654 2657 ;;; checkdoc.el ends here
