From 43ec17092f4c0ce5278c6b2c8cbc0b7a7fa38934 Mon Sep 17 00:00:00 2001 From: Glenn Morris Date: Tue, 11 Dec 2007 05:25:51 +0000 Subject: [PATCH] Add declare-function compatibility definition. (nndb-request-article): Declare as a function. --- lisp/gnus/nndb.el | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/lisp/gnus/nndb.el b/lisp/gnus/nndb.el index 70d395ba986..9e1bd3623dc 100644 --- a/lisp/gnus/nndb.el +++ b/lisp/gnus/nndb.el @@ -48,6 +48,12 @@ ;; * make the backend TOUCH an article when marked as expireable (will ;; make article expire 'expiry' days after that moment). +;;; Code: + +;; For Emacs < 22.2. +(eval-and-compile + (unless (fboundp 'declare-function) (defmacro declare-function (&rest r)))) + ;;- ;; Register nndb with known select methods. @@ -55,8 +61,6 @@ (unless (assoc "nndb" gnus-valid-select-methods) (gnus-declare-backend "nndb" 'mail 'respool 'address 'prompt-address)) -;;; Code: - (require 'nnmail) (require 'nnheader) (require 'nntp) @@ -240,6 +244,9 @@ expiry mechanism." (nndb-request-expire-articles-remote articles group server force) (nndb-request-expire-articles-local articles group server force))) +;; _Something_ defines it... +(declare-function nndb-request-article "nndb" t t) + (deffoo nndb-request-move-article (article group server accept-form &optional last move-is-internal) "Move ARTICLE (a number) from GROUP on SERVER. -- 2.39.2