From 498fc2ae10af3d4ecbee270c431d9cad52655517 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 11 Dec 2007 05:41:53 +0000 Subject: [PATCH] Add declare-function compatibility definition. (message-options-get): Autoload. (message-options-set): Declare as a function. --- lisp/gnus/mm-bodies.el | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/lisp/gnus/mm-bodies.el b/lisp/gnus/mm-bodies.el index 557bd132ed5..e7743d12d30 100644 --- a/lisp/gnus/mm-bodies.el +++ b/lisp/gnus/mm-bodies.el @@ -26,6 +26,10 @@ ;;; Code: +;; For Emacs < 22.2. +(eval-and-compile + (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) + (require 'mm-util) (require 'rfc2047) (require 'mm-encode) @@ -67,6 +71,9 @@ Valid encodings are `7bit', `8bit', `quoted-printable' and `base64'." (const base64)))) :group 'mime) +(autoload 'message-options-get "message") +(declare-function message-options-set "message" (symbol value)) + (defun mm-encode-body (&optional charset) "Encode a body. Should be called narrowed to the body that is to be encoded. -- 2.39.2