changeset 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 54ba9c058e4a
children e7e2bc9b899d
files lisp/gnus/gnus-spec.el
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
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)