aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGlenn Morris2007-12-11 05:23:37 +0000
committerGlenn Morris2007-12-11 05:23:37 +0000
commit163a3c6aee8034d447e4f066307f32d8aa010e59 (patch)
treeaebe30c8b1861047f0632cb88bced2d3a2cb948c
parentcdbd069ad0f04009a01b31bf775b1e3fb30b9c41 (diff)
downloademacs-163a3c6aee8034d447e4f066307f32d8aa010e59.tar.gz
emacs-163a3c6aee8034d447e4f066307f32d8aa010e59.zip
Add declare-function compatibility definition.
Require gnus-int. (gnus-activate-group, gnus-group-mark-article-read): Declare as functions.
-rw-r--r--lisp/gnus/nnmail.el10
1 files changed, 10 insertions, 0 deletions
diff --git a/lisp/gnus/nnmail.el b/lisp/gnus/nnmail.el
index e05c286b1ab..06e6db5f792 100644
--- a/lisp/gnus/nnmail.el
+++ b/lisp/gnus/nnmail.el
@@ -27,6 +27,10 @@
27 27
28;;; Code: 28;;; Code:
29 29
30;; For Emacs < 22.2.
31(eval-and-compile
32 (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
33
30(eval-when-compile (require 'cl)) 34(eval-when-compile (require 'cl))
31 35
32(require 'gnus) ; for macro gnus-kill-buffer, at least 36(require 'gnus) ; for macro gnus-kill-buffer, at least
@@ -35,6 +39,7 @@
35(require 'gnus-util) 39(require 'gnus-util)
36(require 'mail-source) 40(require 'mail-source)
37(require 'mm-util) 41(require 'mm-util)
42(require 'gnus-int)
38 43
39(eval-and-compile 44(eval-and-compile
40 (autoload 'gnus-add-buffer "gnus") 45 (autoload 'gnus-add-buffer "gnus")
@@ -1315,6 +1320,9 @@ Eudora has a broken References line, but an OK In-Reply-To."
1315 1320
1316;;; Utility functions 1321;;; Utility functions
1317 1322
1323(declare-function gnus-activate-group "gnus-start"
1324 (group &optional scan dont-check method))
1325
1318(defun nnmail-do-request-post (accept-func &optional server) 1326(defun nnmail-do-request-post (accept-func &optional server)
1319 "Utility function to directly post a message to an nnmail-derived group. 1327 "Utility function to directly post a message to an nnmail-derived group.
1320Calls ACCEPT-FUNC (which should be `nnchoke-request-accept-article') 1328Calls ACCEPT-FUNC (which should be `nnchoke-request-accept-article')
@@ -1854,6 +1862,8 @@ See the Info node `(gnus)Fancy Mail Splitting' for more details."
1854 ;; Compare the time with the current time. 1862 ;; Compare the time with the current time.
1855 (ignore-errors (time-less-p days (time-since time)))))))) 1863 (ignore-errors (time-less-p days (time-since time))))))))
1856 1864
1865(declare-function gnus-group-mark-article-read "gnus-group" (group article))
1866
1857(defun nnmail-expiry-target-group (target group) 1867(defun nnmail-expiry-target-group (target group)
1858 ;; Do not invoke this from nntp-server-buffer! At least nnfolder clears 1868 ;; Do not invoke this from nntp-server-buffer! At least nnfolder clears
1859 ;; that buffer if the nnfolder group isn't selected. 1869 ;; that buffer if the nnfolder group isn't selected.