Show
Ignore:
Timestamp:
09/09/06 16:30:10 (2 years ago)
Author:
miyoshi
Message:

Sync up with Emacs CVS HEAD.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/lisp/emacs-lisp/checkdoc.el

    r4037 r4161  
    194194(defvar compilation-mode-font-lock-keywords) 
    195195 
     196(defgroup checkdoc nil 
     197  "Support for doc string checking in Emacs Lisp." 
     198  :prefix "checkdoc" 
     199  :group 'lisp 
     200  :version "20.3") 
     201 
    196202(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. 
    198204If this value is the symbol `query', then the user is queried before 
    199205any change is made.  If the value is `automatic', then all changes are 
     
    209215 
    210216(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. 
    212218Setting this to nil will silently make fixes that require no user 
    213219interaction.  See `checkdoc-autofix-flag' for auto-fixing details." 
     
    216222 
    217223(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. 
    219225Style guide dictates that interactive functions MUST have documentation, 
    220226and that it's good but not required practice to make non user visible items 
     
    222228  :group 'checkdoc 
    223229  :type 'boolean) 
     230(put 'checkdoc-force-docstrings-flag 'safe-local-variable 'booleanp) 
    224231 
    225232(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. 
    227234This helps document the evolution of, and recent changes to, the package." 
    228235  :group 'checkdoc 
     
    230237 
    231238(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. 
    233240Ordinarily, a full sentence is required.  This may be misleading when 
    234241there is a substantial caveat to the one-line description -- the comma 
     
    237244  :group 'checkdoc 
    238245  :type 'boolean) 
     246(put 'checkdoc-permit-comma-termination-flag 'safe-local-variable 'booleanp) 
    239247 
    240248(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. 
    242250This is automatically set to nil if Ispell does not exist on your 
    243251system.  Possible values are: 
     
    260268 
    261269(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. 
    263271Any more than this and a warning is generated suggesting that the construct 
    264272\\ {keymap} be used instead." 
     
    267275 
    268276(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. 
    270278Setting this to nil will mean only checking that all the arguments 
    271279appear in the proper form in the documentation, not that they are in 
     
    299307 
    300308(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. 
    302310This check keys off some words which are commonly misused.  See the 
    303311variable `checkdoc-common-verbs-wrong-voice' if you wish to add your own." 
     
    22542262                    (re-search-forward "^(require" nil t) 
    22552263                    (re-search-forward "^(" nil t)) 
    2256                 (beginning-of-line))) 
     2264                (beginning-of-line)) 
     2265               (t (re-search-forward ";;; .* --- .*\n"))) 
    22572266              (if (checkdoc-y-or-n-p 
    22582267                   "You should have a \";;; Commentary:\", add one? ") 
     
    26342643        nil))) 
    26352644 
    2636 (defgroup checkdoc nil 
    2637   "Support for doc string checking in Emacs Lisp." 
    2638   :prefix "checkdoc" 
    2639   :group 'lisp 
    2640   :version "20.3") 
    2641  
    26422645(custom-add-option 'emacs-lisp-mode-hook 
    26432646                   (lambda () (checkdoc-minor-mode 1))) 
     
    26512654(provide 'checkdoc) 
    26522655 
    2653 ;;; arch-tag: c49a7ec8-3bb7-46f2-bfbc-d5f26e033b26 
     2656;; arch-tag: c49a7ec8-3bb7-46f2-bfbc-d5f26e033b26 
    26542657;;; checkdoc.el ends here