From: Glenn Morris Date: Tue, 11 Dec 2007 05:41:53 +0000 (+0000) Subject: Add declare-function compatibility definition. X-Git-Tag: emacs-pretest-23.0.90~8957 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=498fc2ae10af3d4ecbee270c431d9cad52655517;p=emacs.git Add declare-function compatibility definition. (message-options-get): Autoload. (message-options-set): Declare as a function. --- 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.