summaryrefslogtreecommitdiff
path: root/lisp/gnus/nnir.el
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2010-10-31 19:38:33 -0700
committerGlenn Morris <rgm@gnu.org>2010-10-31 19:38:33 -0700
commite195d639a54c5a03dff4b55485414c1855703ebd (patch)
treebd191506a0ef1e799ab4cd1ac5431024d85204e1 /lisp/gnus/nnir.el
parent36967cf790b79b3c575a4eacee3c64da07815e9b (diff)
downloademacs-e195d639a54c5a03dff4b55485414c1855703ebd.tar.gz
Silence nnir.el compilation.
* lisp/gnus/nnir.el (declare-function): Add compat stub. (mm-url-insert, mm-url-encode-www-form-urlencoded): Declare. (nnir-run-gmane): Require 'mm-url.
Diffstat (limited to 'lisp/gnus/nnir.el')
-rw-r--r--lisp/gnus/nnir.el8
1 files changed, 8 insertions, 0 deletions
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index 3e00158aad7..073df1928bc 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -164,6 +164,10 @@
;;; Setup Code:
+;; For Emacs <22.2 and XEmacs.
+(eval-and-compile
+ (unless (fboundp 'declare-function) (defmacro declare-function (&rest r))))
+
(require 'nnoo)
(require 'gnus-group)
(require 'gnus-sum)
@@ -1382,6 +1386,9 @@ Tested with Namazu 2.0.6 on a GNU/Linux system."
artlist)))
grouplist))))
+(declare-function mm-url-insert "mm-url" (url &optional follow-refresh))
+(declare-function mm-url-encode-www-form-urlencoded "mm-url" (pairs))
+
;; gmane interface
(defun nnir-run-gmane (query srv &optional groups)
"Run a search against a gmane back-end server."
@@ -1401,6 +1408,7 @@ Tested with Namazu 2.0.6 on a GNU/Linux system."
(search (format "%s %s %s"
qstring groupspec authorspec))
artlist)
+ (require 'mm-url)
(with-current-buffer nntp-server-buffer
(erase-buffer)
(mm-url-insert