+2002-05-06 Josh Huber <huber@alum.wpi.edu>
+
+ * mml2015.el (mml2015-gpg-encrypt): Changed name of optional
+ argument, and fixed compiler warning. (added autoload for
+ gpg-encrypt).
+
2002-05-04 Simon Josefsson <jas@extundo.com>
* mml1991.el (mml1991-function-alist): Doc fix.
(autoload 'gpg-verify-cleartext "gpg")
(autoload 'gpg-sign-detached "gpg")
(autoload 'gpg-sign-encrypt "gpg")
+ (autoload 'gpg-encrypt "gpg")
(autoload 'gpg-passphrase-read "gpg"))
(defun mml2015-gpg-passphrase ()
(insert (format "--%s--\n" boundary))
(goto-char (point-max)))))
-(defun mml2015-gpg-encrypt (cont &optional sign-also)
+(defun mml2015-gpg-encrypt (cont &optional sign)
(let ((boundary
(funcall mml-boundary-function (incf mml-multipart-number)))
(text (current-buffer))
cipher)
(mm-with-unibyte-current-buffer-mule4
(with-temp-buffer
+ ;; set up a function to call the correct gpg encrypt routine
+ ;; with the right arguments. (FIXME: this should be done
+ ;; differently.)
(flet ((gpg-encrypt-func
(sign plaintext ciphertext result recipients &optional
passphrase sign-with-key armor textmode)
- (if sign-also
+ (if sign
(gpg-sign-encrypt
plaintext ciphertext result recipients passphrase
sign-with-key armor textmode)
plaintext ciphertext result recipients passphrase
armor textmode))))
(unless (gpg-encrypt-func
- sign-also ; passed in when using signencrypt
+ sign ; passed in when using signencrypt
text (setq cipher (current-buffer))
mml2015-result-buffer
(split-string