diff options
| author | Glenn Morris | 2009-08-22 23:02:14 +0000 |
|---|---|---|
| committer | Glenn Morris | 2009-08-22 23:02:14 +0000 |
| commit | 9b89e3ee328a08937e796c0b2a4f9075ca8eeb90 (patch) | |
| tree | 42b291961b3453c21c867aab3eafbf8207036f0d | |
| parent | 7763401bac994e1c6bf94cba3b2a445927df40cd (diff) | |
| download | emacs-9b89e3ee328a08937e796c0b2a4f9075ca8eeb90.tar.gz emacs-9b89e3ee328a08937e796c0b2a4f9075ca8eeb90.zip | |
Kevin Ryde <user42 at zip.com.au>
(checkdoc-force-history-flag, checkdoc-arguments-in-order-flag):
Add safe-local-variable booleanp.
(checkdoc-symbol-words): Add safe-local-variable for list of strings.
Clarify docstring that the value is strings not symbols.
(checkdoc-list-of-strings-p): New function.
| -rw-r--r-- | lisp/ChangeLog | 8 | ||||
| -rw-r--r-- | lisp/emacs-lisp/checkdoc.el | 14 |
2 files changed, 20 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 0614405eb3c..66c7e3d118e 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2009-08-22 Kevin Ryde <user42@zip.com.au> | ||
| 2 | |||
| 3 | * emacs-lisp/checkdoc.el (checkdoc-force-history-flag) | ||
| 4 | (checkdoc-arguments-in-order-flag): Add safe-local-variable booleanp. | ||
| 5 | (checkdoc-symbol-words): Add safe-local-variable for list of strings. | ||
| 6 | Clarify docstring that the value is strings not symbols. | ||
| 7 | (checkdoc-list-of-strings-p): New function. | ||
| 8 | |||
| 1 | 2009-08-22 Glenn Morris <rgm@gnu.org> | 9 | 2009-08-22 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * hippie-exp.el (he-concat-directory-file-name): | 11 | * hippie-exp.el (he-concat-directory-file-name): |
diff --git a/lisp/emacs-lisp/checkdoc.el b/lisp/emacs-lisp/checkdoc.el index fad8d25ab6b..54d1a356259 100644 --- a/lisp/emacs-lisp/checkdoc.el +++ b/lisp/emacs-lisp/checkdoc.el | |||
| @@ -223,6 +223,7 @@ have doc strings." | |||
| 223 | This helps document the evolution of, and recent changes to, the package." | 223 | This helps document the evolution of, and recent changes to, the package." |
| 224 | :group 'checkdoc | 224 | :group 'checkdoc |
| 225 | :type 'boolean) | 225 | :type 'boolean) |
| 226 | ;;;###autoload(put 'checkdoc-force-history-flag 'safe-local-variable 'booleanp) | ||
| 226 | 227 | ||
| 227 | (defcustom checkdoc-permit-comma-termination-flag nil | 228 | (defcustom checkdoc-permit-comma-termination-flag nil |
| 228 | "Non-nil means the first line of a docstring may end with a comma. | 229 | "Non-nil means the first line of a docstring may end with a comma. |
| @@ -270,6 +271,7 @@ the same order as they appear in the argument list. No mention is | |||
| 270 | made in the style guide relating to order." | 271 | made in the style guide relating to order." |
| 271 | :group 'checkdoc | 272 | :group 'checkdoc |
| 272 | :type 'boolean) | 273 | :type 'boolean) |
| 274 | ;;;###autoload(put 'checkdoc-arguments-in-order-flag 'safe-local-variable 'booleanp) | ||
| 273 | 275 | ||
| 274 | (defvar checkdoc-style-hooks nil | 276 | (defvar checkdoc-style-hooks nil |
| 275 | "Hooks called after the standard style check is completed. | 277 | "Hooks called after the standard style check is completed. |
| @@ -307,11 +309,19 @@ Do not set this by hand, use a function like `checkdoc-current-buffer' | |||
| 307 | with a universal argument.") | 309 | with a universal argument.") |
| 308 | 310 | ||
| 309 | (defcustom checkdoc-symbol-words nil | 311 | (defcustom checkdoc-symbol-words nil |
| 310 | "A list of symbols which also happen to make good words. | 312 | "A list of symbol names (strings) which also happen to make good words. |
| 311 | These symbol-words are ignored when unquoted symbols are searched for. | 313 | These words are ignored when unquoted symbols are searched for. |
| 312 | This should be set in an Emacs Lisp file's local variables." | 314 | This should be set in an Emacs Lisp file's local variables." |
| 313 | :group 'checkdoc | 315 | :group 'checkdoc |
| 314 | :type '(repeat (symbol :tag "Word"))) | 316 | :type '(repeat (symbol :tag "Word"))) |
| 317 | ;;;###autoload(put 'checkdoc-symbol-words 'safe-local-variable 'checkdoc-list-of-strings-p) | ||
| 318 | |||
| 319 | ;;;###autoload | ||
| 320 | (defun checkdoc-list-of-strings-p (obj) | ||
| 321 | ;; this is a function so it might be shared by checkdoc-proper-noun-list | ||
| 322 | ;; and/or checkdoc-ispell-lisp-words in the future | ||
| 323 | (and (listp obj) | ||
| 324 | (not (memq nil (mapcar 'stringp obj))))) | ||
| 315 | 325 | ||
| 316 | (defvar checkdoc-proper-noun-list | 326 | (defvar checkdoc-proper-noun-list |
| 317 | '("ispell" "xemacs" "emacs" "lisp") | 327 | '("ispell" "xemacs" "emacs" "lisp") |