[gnus git] branch master updated: m0-7-277-g9551aa7 =1= Misc changes made in Emacs trunk
Katsumi Yamaoka <[email protected]>
| Newsgroups | gmane.emacs.gnus.cvs |
|---|---|
| Message-ID | <[email protected]> |
via 9551aa7c7b1661c69d9a542dfac26c8af444e9d6 (commit)
from c32ff41cd6ce14db705ec39432819776d4be86a6 (commit)
- Log -----------------------------------------------------------------
commit 9551aa7c7b1661c69d9a542dfac26c8af444e9d6
Author: Glenn Morris <[email protected]>
Date: Sat Dec 28 11:54:38 2013 +0000
Misc changes made in Emacs trunk
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index fb9e5ac..4c92972 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,15 @@
2013-12-28 Glenn Morris <[email protected]>
+ * 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.
+
+ * hashcash.el (hashcash-program): Rename from hashcash-path.
+ Update callers.
+
* 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-sieve.el b/lisp/gnus-sieve.el
index ee3cdf4..80ad6ab 100644
--- a/lisp/gnus-sieve.el
+++ b/lisp/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/gravatar.el b/lisp/gravatar.el
index 985ed2c..fa7e8fa 100644
--- a/lisp/gravatar.el
+++ b/lisp/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/hashcash.el b/lisp/hashcash.el
index b6df075..07a428a 100644
--- a/lisp/hashcash.el
+++ b/lisp/hashcash.el
@@ -89,20 +89,25 @@ present, is the string to be hashed; if not present ADDR will be used."
Resources named here are to be accepted in incoming payments. If the
corresponding AMOUNT is NIL, the value of `hashcash-default-accept-payment'
is used instead."
+ :type 'alist
:group 'hashcash)
-(defcustom hashcash-path (executable-find "hashcash")
- "The path to the hashcash binary."
+(define-obsolete-variable-alias 'hashcash-path 'hashcash-program "24.4")
+(defcustom hashcash-program "hashcash"
+ "The name of the hashcash executable.
+If this is not in your PATH, specify an absolute file name."
+ :type '(choice (const nil) file)
:group 'hashcash)
(defcustom hashcash-extra-generate-parameters nil
- "A list of parameter strings passed to `hashcash-path' when minting.
+ "A list of parameter strings passed to `hashcash-program' when minting.
For example, you may want to set this to '(\"-Z2\") to reduce header length."
:type '(repeat string)
:group 'hashcash)
(defcustom hashcash-double-spend-database "hashcash.db"
- "The path to the double-spending database."
+ "The name of the double-spending database file."
+ :type 'file
:group 'hashcash)
(defcustom hashcash-in-news nil
@@ -159,10 +164,10 @@ For example, you may want to set this to '(\"-Z2\") to reduce header length."
(defun hashcash-generate-payment (str val)
"Generate a hashcash payment by finding a VAL-bit collison on STR."
(if (and (> val 0)
- hashcash-path)
+ hashcash-program)
(with-current-buffer (get-buffer-create " *hashcash*")
(erase-buffer)
- (apply 'call-process hashcash-path nil t nil
+ (apply 'call-process hashcash-program nil t nil
"-m" "-q" "-b" (number-to-string val) str
hashcash-extra-generate-parameters)
(goto-char (point-min))
@@ -173,9 +178,9 @@ For example, you may want to set this to '(\"-Z2\") to reduce header length."
"Generate a hashcash payment by finding a VAL-bit collison on STR.
Return immediately. Call CALLBACK with process and result when ready."
(if (and (> val 0)
- hashcash-path)
+ hashcash-program)
(let ((process (apply 'start-process "hashcash" nil
- hashcash-path "-m" "-q"
+ hashcash-program "-m" "-q"
"-b" (number-to-string val) str
hashcash-extra-generate-parameters)))
(setq hashcash-process-alist (cons
@@ -187,8 +192,8 @@ Return immediately. Call CALLBACK with process and result when ready."
(defun hashcash-check-payment (token str val)
"Check the validity of a hashcash payment."
- (if hashcash-path
- (zerop (call-process hashcash-path nil nil nil "-c"
+ (if hashcash-program
+ (zerop (call-process hashcash-program nil nil nil "-c"
"-d" "-f" hashcash-double-spend-database
"-b" (number-to-string val)
"-r" str
diff --git a/lisp/message.el b/lisp/message.el
index 4a7c2ab..53f756f 100644
--- a/lisp/message.el
+++ b/lisp/message.el
@@ -972,6 +972,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/sieve-manage.el b/lisp/sieve-manage.el
index 4221276..2784398 100644
--- a/lisp/sieve-manage.el
+++ b/lisp/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"
-----------------------------------------------------------------------
Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we listed those
revisions in full, above.
Summary of changes:
lisp/ChangeLog | 10 ++++++++++
lisp/gnus-sieve.el | 9 ++++-----
lisp/gravatar.el | 8 +++++++-
lisp/hashcash.el | 25 +++++++++++++++----------
lisp/message.el | 2 ++
lisp/sieve-manage.el | 6 ++++++
6 files changed, 44 insertions(+), 16 deletions(-)
This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "Gnus Project".
The branch, master has been updated
hooks/post-receive
--
Gnus Project