diff options
| author | Glenn Morris | 2007-12-11 05:28:13 +0000 |
|---|---|---|
| committer | Glenn Morris | 2007-12-11 05:28:13 +0000 |
| commit | 0cc7b6420993e88b176df08e4f493707f41da9cb (patch) | |
| tree | 71f250c4a872dd8f503b9d2e552ebc9cea28eac6 | |
| parent | 5a12b40c6a3bd58d7fb45a1d498dd87c0f5447aa (diff) | |
| download | emacs-0cc7b6420993e88b176df08e4f493707f41da9cb.tar.gz emacs-0cc7b6420993e88b176df08e4f493707f41da9cb.zip | |
Add declare-function compatibility definition.
(mm-decode-content-transfer-encoding)
(mm-encode-content-transfer-encoding)
(message-options-get, message-options-set): Autoload.
(mc-encrypt-generic, gpg-sign-encrypt, gpg-encrypt): Declare as functions.
| -rw-r--r-- | lisp/gnus/mml1991.el | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/lisp/gnus/mml1991.el b/lisp/gnus/mml1991.el index be9981676e6..44efe6da668 100644 --- a/lisp/gnus/mml1991.el +++ b/lisp/gnus/mml1991.el | |||
| @@ -28,6 +28,10 @@ | |||
| 28 | 28 | ||
| 29 | ;;; Code: | 29 | ;;; Code: |
| 30 | 30 | ||
| 31 | ;; For Emacs < 22.2. | ||
| 32 | (eval-and-compile | ||
| 33 | (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) | ||
| 34 | |||
| 31 | (eval-when-compile | 35 | (eval-when-compile |
| 32 | (require 'cl) | 36 | (require 'cl) |
| 33 | (require 'mm-util)) | 37 | (require 'mm-util)) |
| @@ -39,6 +43,11 @@ | |||
| 39 | (autoload 'quoted-printable-decode-region "qp") | 43 | (autoload 'quoted-printable-decode-region "qp") |
| 40 | (autoload 'quoted-printable-encode-region "qp") | 44 | (autoload 'quoted-printable-encode-region "qp") |
| 41 | 45 | ||
| 46 | (autoload 'mm-decode-content-transfer-encoding "mm-bodies") | ||
| 47 | (autoload 'mm-encode-content-transfer-encoding "mm-bodies") | ||
| 48 | (autoload 'message-options-get "message") | ||
| 49 | (autoload 'message-options-set "message") | ||
| 50 | |||
| 42 | (defvar mml1991-use mml2015-use | 51 | (defvar mml1991-use mml2015-use |
| 43 | "The package used for PGP.") | 52 | "The package used for PGP.") |
| 44 | 53 | ||
| @@ -111,6 +120,9 @@ Whether the passphrase is cached at all is controlled by | |||
| 111 | (insert-buffer-substring signature) | 120 | (insert-buffer-substring signature) |
| 112 | (goto-char (point-max))))) | 121 | (goto-char (point-max))))) |
| 113 | 122 | ||
| 123 | (declare-function mc-encrypt-generic "ext:mc-toplev" | ||
| 124 | (&optional recipients scheme start end from sign)) | ||
| 125 | |||
| 114 | (defun mml1991-mailcrypt-encrypt (cont &optional sign) | 126 | (defun mml1991-mailcrypt-encrypt (cont &optional sign) |
| 115 | (let ((text (current-buffer)) | 127 | (let ((text (current-buffer)) |
| 116 | (mc-pgp-always-sign | 128 | (mc-pgp-always-sign |
| @@ -161,6 +173,13 @@ Whether the passphrase is cached at all is controlled by | |||
| 161 | (eval-and-compile | 173 | (eval-and-compile |
| 162 | (autoload 'gpg-sign-cleartext "gpg")) | 174 | (autoload 'gpg-sign-cleartext "gpg")) |
| 163 | 175 | ||
| 176 | (declare-function gpg-sign-encrypt "ext:gpg" | ||
| 177 | (plaintext ciphertext result recipients &optional | ||
| 178 | passphrase sign-with-key armor textmode)) | ||
| 179 | (declare-function gpg-encrypt "ext:gpg" | ||
| 180 | (plaintext ciphertext result recipients &optional | ||
| 181 | passphrase armor textmode)) | ||
| 182 | |||
| 164 | (defun mml1991-gpg-sign (cont) | 183 | (defun mml1991-gpg-sign (cont) |
| 165 | (let ((text (current-buffer)) | 184 | (let ((text (current-buffer)) |
| 166 | headers signature | 185 | headers signature |