]> git.eshelyaron.com Git - emacs.git/commitdiff
(declare-function): Add compatibility declaration.
authorGlenn Morris <rgm@gnu.org>
Sun, 9 Dec 2007 02:05:41 +0000 (02:05 +0000)
committerGlenn Morris <rgm@gnu.org>
Sun, 9 Dec 2007 02:05:41 +0000 (02:05 +0000)
(gnus-summary-from-or-to-or-newsgroups): Declare as function.

lisp/gnus/gnus-spec.el

index f87377cb1ede2d9e4f13cb01309e5945be52d09b..5b8bf92ffdb2f984bb5d9ab530db48f90035293e 100644 (file)
@@ -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 @@ text properties. This is only needed on XEmacs, as FSF Emacs does this anyway."
 (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)