diff lisp/gnus/gnus-sum.el @ 87189:e7e2bc9b899d

(declare-function): Add compatibility declaration. (gnus-get-predicate): Declare as function.
author Glenn Morris <rgm@gnu.org>
date Sun, 09 Dec 2007 02:07:07 +0000
parents e50a2e215441
children 617739001662
line wrap: on
line diff
--- a/lisp/gnus/gnus-sum.el	Sun Dec 09 02:05:41 2007 +0000
+++ b/lisp/gnus/gnus-sum.el	Sun Dec 09 02:07:07 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))
 
@@ -5576,6 +5579,8 @@
 	  (gnus-inverse-list-range-intersection
 	   gnus-newsgroup-articles gnus-newsgroup-seen))))
 
+(declare-function gnus-get-predicate "gnus-agent" (predicate))
+
 (defun gnus-summary-display-make-predicate (display)
   (require 'gnus-agent)
   (when (= (length display) 1)