aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/ChangeLog9
-rw-r--r--lisp/epg.el25
2 files changed, 21 insertions, 13 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index bd2dbf465d5..f54e1710511 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,5 +1,14 @@
12008-03-05 Juanma Barranquero <lekktu@gmail.com> 12008-03-05 Juanma Barranquero <lekktu@gmail.com>
2 2
3 * epg.el (epg-context-include-certs): Reflow docstring.
4 (epg-start-sign-keys, epg-sign-keys, epg-context-armor)
5 (epg-context-signers, epg-context-sig-notations, epg-context-set-armor)
6 (epg-context-set-signers, epg-context-set-sig-notations)
7 (epg-make-import-status, epg-make-import-result)
8 (epg-start-delete-keys): Fix typos in docstrings.
9 (epg-start-sign-keys, epg-sign-keys):
10 Fix typos in obsolescence declarations.
11
3 * iswitchb.el: Don't check for `cadr' and `last'. 12 * iswitchb.el: Don't check for `cadr' and `last'.
4 (iswitchb-define-mode-map, iswitchb-default-keybindings): 13 (iswitchb-define-mode-map, iswitchb-default-keybindings):
5 Add obsolescence declaration and remove redundant info from docstring. 14 Add obsolescence declaration and remove redundant info from docstring.
diff --git a/lisp/epg.el b/lisp/epg.el
index cc07d6201d6..d7cd21e2ea5 100644
--- a/lisp/epg.el
+++ b/lisp/epg.el
@@ -198,7 +198,7 @@
198 (aref (cdr context) 0)) 198 (aref (cdr context) 0))
199 199
200(defun epg-context-armor (context) 200(defun epg-context-armor (context)
201 "Return t if the output shouled be ASCII armored in CONTEXT." 201 "Return t if the output should be ASCII armored in CONTEXT."
202 (unless (eq (car-safe context) 'epg-context) 202 (unless (eq (car-safe context) 'epg-context)
203 (signal 'wrong-type-argument (list 'epg-context-p context))) 203 (signal 'wrong-type-argument (list 'epg-context-p context)))
204 (aref (cdr context) 1)) 204 (aref (cdr context) 1))
@@ -210,8 +210,7 @@
210 (aref (cdr context) 2)) 210 (aref (cdr context) 2))
211 211
212(defun epg-context-include-certs (context) 212(defun epg-context-include-certs (context)
213 "Return how many certificates should be included in an S/MIME signed 213 "Return how many certificates should be included in an S/MIME signed message."
214message."
215 (unless (eq (car-safe context) 'epg-context) 214 (unless (eq (car-safe context) 'epg-context)
216 (signal 'wrong-type-argument (list 'epg-context-p context))) 215 (signal 'wrong-type-argument (list 'epg-context-p context)))
217 (aref (cdr context) 3)) 216 (aref (cdr context) 3))
@@ -247,13 +246,13 @@ message."
247 (aref (cdr context) 8)) 246 (aref (cdr context) 8))
248 247
249(defun epg-context-signers (context) 248(defun epg-context-signers (context)
250 "Return the list of key-id for singning." 249 "Return the list of key-id for signing."
251 (unless (eq (car-safe context) 'epg-context) 250 (unless (eq (car-safe context) 'epg-context)
252 (signal 'wrong-type-argument (list 'epg-context-p context))) 251 (signal 'wrong-type-argument (list 'epg-context-p context)))
253 (aref (cdr context) 9)) 252 (aref (cdr context) 9))
254 253
255(defun epg-context-sig-notations (context) 254(defun epg-context-sig-notations (context)
256 "Return the list of notations for singning." 255 "Return the list of notations for signing."
257 (unless (eq (car-safe context) 'epg-context) 256 (unless (eq (car-safe context) 'epg-context)
258 (signal 'wrong-type-argument (list 'epg-context-p context))) 257 (signal 'wrong-type-argument (list 'epg-context-p context)))
259 (aref (cdr context) 10)) 258 (aref (cdr context) 10))
@@ -291,7 +290,7 @@ This function is for internal use only."
291 (aset (cdr context) 0 protocol)) 290 (aset (cdr context) 0 protocol))
292 291
293(defun epg-context-set-armor (context armor) 292(defun epg-context-set-armor (context armor)
294 "Specify if the output shouled be ASCII armored in CONTEXT." 293 "Specify if the output should be ASCII armored in CONTEXT."
295 (unless (eq (car-safe context) 'epg-context) 294 (unless (eq (car-safe context) 'epg-context)
296 (signal 'wrong-type-argument (list 'epg-context-p context))) 295 (signal 'wrong-type-argument (list 'epg-context-p context)))
297 (aset (cdr context) 1 armor)) 296 (aset (cdr context) 1 armor))
@@ -342,13 +341,13 @@ If optional argument HANDBACK is specified, it is passed to PROGRESS-CALLBACK."
342 (aset (cdr context) 8 progress-callback)) 341 (aset (cdr context) 8 progress-callback))
343 342
344(defun epg-context-set-signers (context signers) 343(defun epg-context-set-signers (context signers)
345 "Set the list of key-id for singning." 344 "Set the list of key-id for signing."
346 (unless (eq (car-safe context) 'epg-context) 345 (unless (eq (car-safe context) 'epg-context)
347 (signal 'wrong-type-argument (list 'epg-context-p context))) 346 (signal 'wrong-type-argument (list 'epg-context-p context)))
348 (aset (cdr context) 9 signers)) 347 (aset (cdr context) 9 signers))
349 348
350(defun epg-context-set-sig-notations (context notations) 349(defun epg-context-set-sig-notations (context notations)
351 "Set the list of notations for singning." 350 "Set the list of notations for signing."
352 (unless (eq (car-safe context) 'epg-context) 351 (unless (eq (car-safe context) 'epg-context)
353 (signal 'wrong-type-argument (list 'epg-context-p context))) 352 (signal 'wrong-type-argument (list 'epg-context-p context)))
354 (aset (cdr context) 10 notations)) 353 (aset (cdr context) 10 notations))
@@ -786,7 +785,7 @@ This function is for internal use only."
786 785
787(defun epg-make-import-status (fingerprint &optional reason new user-id 786(defun epg-make-import-status (fingerprint &optional reason new user-id
788 signature sub-key secret) 787 signature sub-key secret)
789 "Return a import status object." 788 "Return an import status object."
790 (cons 'epg-import-status (vector fingerprint reason new user-id signature 789 (cons 'epg-import-status (vector fingerprint reason new user-id signature
791 sub-key secret))) 790 sub-key secret)))
792 791
@@ -838,7 +837,7 @@ This function is for internal use only."
838 secret-read secret-imported 837 secret-read secret-imported
839 secret-unchanged not-imported 838 secret-unchanged not-imported
840 imports) 839 imports)
841 "Return a import result object." 840 "Return an import result object."
842 (cons 'epg-import-result (vector considered no-user-id imported imported-rsa 841 (cons 'epg-import-result (vector considered no-user-id imported imported-rsa
843 unchanged new-user-ids new-sub-keys 842 unchanged new-user-ids new-sub-keys
844 new-signatures new-revocations secret-read 843 new-signatures new-revocations secret-read
@@ -2435,7 +2434,7 @@ KEYS is a list of key IDs"
2435 2434
2436;;;###autoload 2435;;;###autoload
2437(defun epg-start-delete-keys (context keys &optional allow-secret) 2436(defun epg-start-delete-keys (context keys &optional allow-secret)
2438 "Initiate an delete keys operation. 2437 "Initiate a delete keys operation.
2439 2438
2440If you use this function, you will need to wait for the completion of 2439If you use this function, you will need to wait for the completion of
2441`epg-gpg-program' by using `epg-wait-for-completion' and call 2440`epg-gpg-program' by using `epg-wait-for-completion' and call
@@ -2488,7 +2487,7 @@ If you are unsure, use synchronous version of this function
2488 (epg-sub-key-id 2487 (epg-sub-key-id
2489 (car (epg-key-sub-key-list key)))) 2488 (car (epg-key-sub-key-list key))))
2490 keys)))) 2489 keys))))
2491(make-obsolete 'epg-start-sign-keys "Do not use.") 2490(make-obsolete 'epg-start-sign-keys "do not use.")
2492 2491
2493;;;###autoload 2492;;;###autoload
2494(defun epg-sign-keys (context keys &optional local) 2493(defun epg-sign-keys (context keys &optional local)
@@ -2501,7 +2500,7 @@ If you are unsure, use synchronous version of this function
2501 (error "Sign keys failed: %S" 2500 (error "Sign keys failed: %S"
2502 (epg-context-result-for context 'error)))) 2501 (epg-context-result-for context 'error))))
2503 (epg-reset context))) 2502 (epg-reset context)))
2504(make-obsolete 'epg-sign-keys "Do not use.") 2503(make-obsolete 'epg-sign-keys "do not use.")
2505 2504
2506;;;###autoload 2505;;;###autoload
2507(defun epg-start-generate-key (context parameters) 2506(defun epg-start-generate-key (context parameters)