From f72f15031a6850bb7c717fdab8e64bbe8cee3d09 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 11 Dec 2007 05:40:08 +0000 Subject: [PATCH] Add declare-function compatibility definition. (message-goto-body): Declare as a function. --- lisp/gnus/mm-extern.el | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/lisp/gnus/mm-extern.el b/lisp/gnus/mm-extern.el index 14e4c77dbed..784ea8c9297 100644 --- a/lisp/gnus/mm-extern.el +++ b/lisp/gnus/mm-extern.el @@ -27,6 +27,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-util) @@ -90,6 +94,8 @@ (let (mm-extern-anonymous) (mm-extern-anon-ftp handle))) +(declare-function message-goto-body "message" (&optional interactivep)) + (defun mm-extern-mail-server (handle) (require 'message) (let* ((params (cdr (mm-handle-type handle))) -- 2.39.2