diff options
author | Glenn Morris <rgm@gnu.org> | 2013-12-28 00:21:33 -0800 |
---|---|---|
committer | Glenn Morris <rgm@gnu.org> | 2013-12-28 00:21:33 -0800 |
commit | 9c5a5c77000b452bdf3ee98e366d5ee6df54b5a4 (patch) | |
tree | ef44cc96cd987b6c079fd1533ab9d9b896980758 /lisp/gnus | |
parent | 7e99158aac0347f62647618200fc5d90681cd2e9 (diff) | |
download | emacs-9c5a5c77000b452bdf3ee98e366d5ee6df54b5a4.tar.gz |
Every defcustom should specify its type
* apropos.el (apropos-match-face):
* calculator.el (calculator-displayer):
* dabbrev.el (dabbrev-search-these-buffers-only):
* face-remap.el (buffer-face-mode-face):
* simple.el (yank-handled-properties):
* emacs-lisp/testcover.el (testcover-potentially-1value-functions):
* mail/footnote.el (footnote-mode-line-string, footnote-prefix):
* mail/hashcash.el (hashcash-accept-resources, hashcash-program)
(hashcash-double-spend-database):
* progmodes/ruby-mode.el (ruby-deep-indent-paren)
(ruby-deep-indent-paren-style):
* textmodes/flyspell.el (flyspell-auto-correct-binding):
* textmodes/rst.el (rst-toc-indent, rst-toc-insert-style)
(rst-toc-insert-number-separator, rst-toc-insert-max-level):
* vc/pcvs-defs.el (cvs-minor-mode-prefix):
* erc/erc-log.el (erc-log-file-coding-system):
* gnus/gnus-sieve.el (gnus-sieve-select-method):
* gnus/gravatar.el (gravatar-automatic-caching, gravatar-cache-ttl)
(gravatar-rating, gravatar-size):
* gnus/message.el (message-minibuffer-local-map):
* gnus/sieve-manage.el (sieve-manage-authenticators)
(sieve-manage-authenticator-alist):
Specify custom types.
* mail/hashcash.el (hashcash-program): Rename from hashcash-path.
Update callers.
Diffstat (limited to 'lisp/gnus')
-rw-r--r-- | lisp/gnus/ChangeLog | 7 | ||||
-rw-r--r-- | lisp/gnus/gnus-sieve.el | 9 | ||||
-rw-r--r-- | lisp/gnus/gravatar.el | 8 | ||||
-rw-r--r-- | lisp/gnus/message.el | 2 | ||||
-rw-r--r-- | lisp/gnus/sieve-manage.el | 6 |
5 files changed, 26 insertions, 6 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog index bb944c14351..b740cbb6330 100644 --- a/lisp/gnus/ChangeLog +++ b/lisp/gnus/ChangeLog @@ -1,5 +1,12 @@ 2013-12-28 Glenn Morris <rgm@gnu.org> + * gnus-sieve.el (gnus-sieve-select-method): + * gravatar.el (gravatar-automatic-caching, gravatar-cache-ttl) + (gravatar-rating, gravatar-size): + * message.el (message-minibuffer-local-map): + * sieve-manage.el (sieve-manage-authenticators) + (sieve-manage-authenticator-alist): Specify custom types. + * gnus-icalendar.el (gnus-icalendar-org, gnus-icalendar): * gnus-sum.el (gnus-subthread-sort-functions): Add version. * gnus-sync.el (gnus-sync-file-encrypt-to): Add type and version. diff --git a/lisp/gnus/gnus-sieve.el b/lisp/gnus/gnus-sieve.el index ee3cdf48e45..80ad6ab4123 100644 --- a/lisp/gnus/gnus-sieve.el +++ b/lisp/gnus/gnus-sieve.el @@ -46,21 +46,20 @@ :group 'gnus-sieve) (defcustom gnus-sieve-region-start "\n## Begin Gnus Sieve Script\n" - "Line indicating the start of the autogenerated region in -your Sieve script." + "Line indicating the start of the autogenerated region in your Sieve script." :type 'string :group 'gnus-sieve) (defcustom gnus-sieve-region-end "\n## End Gnus Sieve Script\n" - "Line indicating the end of the autogenerated region in -your Sieve script." + "Line indicating the end of the autogenerated region in your Sieve script." :type 'string :group 'gnus-sieve) (defcustom gnus-sieve-select-method nil "Which select method we generate the Sieve script for. - For example: \"nnimap:mailbox\"" + ;; FIXME? gnus-select-method? + :type '(choice (const nil) string) :group 'gnus-sieve) (defcustom gnus-sieve-crosspost t diff --git a/lisp/gnus/gravatar.el b/lisp/gnus/gravatar.el index 985ed2c7b0d..fa7e8fa7ce8 100644 --- a/lisp/gnus/gravatar.el +++ b/lisp/gnus/gravatar.el @@ -33,19 +33,25 @@ :group 'comm) (defcustom gravatar-automatic-caching t - "Whether cache retrieved gravatar." + "Whether to cache retrieved gravatars." + :type 'boolean :group 'gravatar) +;; FIXME a time value is not the nicest format for a custom variable. (defcustom gravatar-cache-ttl (days-to-time 30) "Time to live for gravatar cache entries." + :type '(repeat integer) :group 'gravatar) +;; FIXME Doc is tautological. What are the options? (defcustom gravatar-rating "g" "Default rating for gravatar." + :type 'string :group 'gravatar) (defcustom gravatar-size 32 "Default size in pixels for gravatars." + :type 'integer :group 'gravatar) (defconst gravatar-base-url diff --git a/lisp/gnus/message.el b/lisp/gnus/message.el index 11a51a79fce..063eb891173 100644 --- a/lisp/gnus/message.el +++ b/lisp/gnus/message.el @@ -944,6 +944,8 @@ the signature is inserted." (set-keymap-parent map minibuffer-local-map) map) "Keymap for `message-read-from-minibuffer'." + ;; FIXME improve type. + :type '(restricted-sexp :match-alternatives (symbolp keymapp)) :version "22.1" :group 'message-various) diff --git a/lisp/gnus/sieve-manage.el b/lisp/gnus/sieve-manage.el index 4221276e2ec..2784398b631 100644 --- a/lisp/gnus/sieve-manage.el +++ b/lisp/gnus/sieve-manage.el @@ -115,6 +115,10 @@ plain login) "Priority of authenticators to consider when authenticating to server." + ;; FIXME Improve this. It's not `set'. + ;; It's like (repeat (choice (const ...))), where each choice can + ;; only appear once. + :type '(repeat symbol) :group 'sieve-manage) (defcustom sieve-manage-authenticator-alist @@ -131,6 +135,8 @@ NAME names the authenticator. CHECK is a function returning non-nil if the server support the authenticator and AUTHENTICATE is a function for doing the actual authentication." + :type '(repeat (list (symbol :tag "Name") (function :tag "Check function") + (function :tag "Authentication function"))) :group 'sieve-manage) (defcustom sieve-manage-default-port "sieve" |