summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2007-12-11 05:40:08 +0000
committerGlenn Morris <rgm@gnu.org>2007-12-11 05:40:08 +0000
commitf72f15031a6850bb7c717fdab8e64bbe8cee3d09 (patch)
tree586f0ef3e776231caeb832f531a7db9ee9f62ff8 /lisp
parentb50005900277517eb4c6bb7d177c11252fa731d0 (diff)
downloademacs-f72f15031a6850bb7c717fdab8e64bbe8cee3d09.tar.gz
Add declare-function compatibility definition.
(message-goto-body): Declare as a function.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/gnus/mm-extern.el6
1 files changed, 6 insertions, 0 deletions
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)))