diff lisp/gnus/gnus-spec.el @ 87188:1b363e0443be

(declare-function): Add compatibility declaration. (gnus-summary-from-or-to-or-newsgroups): Declare as function.
author Glenn Morris <rgm@gnu.org>
date Sun, 09 Dec 2007 02:05:41 +0000
parents a3c27999decb
children 107ccd98fa12 2fcaae6177a5
line wrap: on
line diff
--- a/lisp/gnus/gnus-spec.el	Sun Dec 09 02:04:18 2007 +0000
+++ b/lisp/gnus/gnus-spec.el	Sun Dec 09 02:05:41 2007 +0000
@@ -27,6 +27,9 @@
 
 ;;; Code:
 
+;; For Emacs < 22.2.
+(eval-and-compile
+  (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
 (eval-when-compile (require 'cl))
 (defvar gnus-newsrc-file-version)
 
@@ -87,6 +90,9 @@
 (defvar gnus-tmp-header)
 (defvar gnus-tmp-from)
 
+(declare-function gnus-summary-from-or-to-or-newsgroups "gnus-sum"
+                  (header gnus-tmp-from))
+
 (defun gnus-summary-line-format-spec ()
   (insert gnus-tmp-unread gnus-tmp-replied
 	  gnus-tmp-score-char gnus-tmp-indentation)