summaryrefslogtreecommitdiff
path: root/lisp/gnus/mml2015.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-12-11 05:26:52 +0000
committerGlenn Morris <rgm@gnu.org>2007-12-11 05:26:52 +0000
commit5a12b40c6a3bd58d7fb45a1d498dd87c0f5447aa (patch)
tree89029d1dc8942a5274cb1915e32c398198622c38 /lisp/gnus/mml2015.el
parent43ec17092f4c0ce5278c6b2c8cbc0b7a7fa38934 (diff)
downloademacs-5a12b40c6a3bd58d7fb45a1d498dd87c0f5447aa.tar.gz
Add declare-function compatibility definition.
(epg-check-configuration, epg-configuration) (message-options-set): Declare as functions. (gnus-buffer-live-p, gnus-get-buffer-create): Autoload.
Diffstat (limited to 'lisp/gnus/mml2015.el')
-rw-r--r--lisp/gnus/mml2015.el15
1 files changed, 15 insertions, 0 deletions
diff --git a/lisp/gnus/mml2015.el b/lisp/gnus/mml2015.el
index 28d1929399e..95d119282ae 100644
--- a/lisp/gnus/mml2015.el
+++ b/lisp/gnus/mml2015.el
@@ -30,6 +30,10 @@
;;; Code:
+;; For Emacs < 22.2.
+(eval-and-compile
+ (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
(eval-when-compile (require 'cl))
(require 'mm-decode)
(require 'mm-util)
@@ -38,6 +42,10 @@
(defvar mc-pgp-always-sign)
+(declare-function epg-check-configuration "ext:epg-config"
+ (config &optional minimum-version))
+(declare-function epg-configuration "ext:epg-config" ())
+
(defvar mml2015-use (or
(condition-case nil
(progn
@@ -396,6 +404,10 @@ Whether the passphrase is cached at all is controlled by
(insert (format "--%s--\n" boundary))
(goto-char (point-max))))
+;; We require mm-decode, which requires mm-bodies, which autoloads
+;; message-options-get (!).
+(declare-function message-options-set "message" (symbol value))
+
(defun mml2015-mailcrypt-encrypt (cont &optional sign)
(let ((mc-pgp-always-sign
(or mc-pgp-always-sign
@@ -1329,6 +1341,9 @@ If no one is selected, default secret key is used. "
;;; General wrapper
+(autoload 'gnus-buffer-live-p "gnus-util")
+(autoload 'gnus-get-buffer-create "gnus")
+
(defun mml2015-clean-buffer ()
(if (gnus-buffer-live-p mml2015-result-buffer)
(with-current-buffer mml2015-result-buffer