From: Glenn Morris Date: Sun, 9 Dec 2007 02:05:41 +0000 (+0000) Subject: (declare-function): Add compatibility declaration. X-Git-Tag: emacs-pretest-23.0.90~9004 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=2d1974c9e45e089a6bb1ed51dbe3e2776dc274d7;p=emacs.git (declare-function): Add compatibility declaration. (gnus-summary-from-or-to-or-newsgroups): Declare as function. --- diff --git a/lisp/gnus/gnus-spec.el b/lisp/gnus/gnus-spec.el index f87377cb1ed..5b8bf92ffdb 100644 --- a/lisp/gnus/gnus-spec.el +++ b/lisp/gnus/gnus-spec.el @@ -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)