# HG changeset patch # User Glenn Morris # Date 1197351608 0 # Node ID c2c948ff1ad88a4674bbfe9e6d4885d2f5516384 # Parent 4d24ed4358aeabc3d428cc43db3481de09687c43 Add declare-function compatibility definition. (message-goto-body): Declare as a function. diff -r 4d24ed4358ae -r c2c948ff1ad8 lisp/gnus/mm-extern.el --- a/lisp/gnus/mm-extern.el Tue Dec 11 05:39:36 2007 +0000 +++ b/lisp/gnus/mm-extern.el Tue Dec 11 05:40:08 2007 +0000 @@ -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)))