aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAndrew Cohen2010-12-07 14:10:11 +0000
committerKatsumi Yamaoka2010-12-07 14:10:11 +0000
commitf2f6365c7453e5a568fd4028bb87031f691df8b7 (patch)
tree74faf1cf019d402ce8f99678a56d8ebd2e6e551f
parentc912b478a7752a75faa1790350421d084b71999b (diff)
downloademacs-f2f6365c7453e5a568fd4028bb87031f691df8b7.tar.gz
emacs-f2f6365c7453e5a568fd4028bb87031f691df8b7.zip
nnir.el (nnir-run-gmane): Restore sub-optimal test for gmane server.
(nnir-request-article): Improve article retrieval.
-rw-r--r--lisp/gnus/ChangeLog5
-rw-r--r--lisp/gnus/nnir.el20
2 files changed, 12 insertions, 13 deletions
diff --git a/lisp/gnus/ChangeLog b/lisp/gnus/ChangeLog
index af7161d3e93..2d4d79af2cc 100644
--- a/lisp/gnus/ChangeLog
+++ b/lisp/gnus/ChangeLog
@@ -1,3 +1,8 @@
12010-12-07 Andrew Cohen <cohen@andy.bu.edu>
2
3 * nnir.el (nnir-run-gmane): Restore sub-optimal test for gmane server.
4 (nnir-request-article): Improve article retrieval.
5
12010-12-07 Katsumi Yamaoka <yamaoka@jpl.org> 62010-12-07 Katsumi Yamaoka <yamaoka@jpl.org>
2 7
3 * mm-util.el (mm-extra-numeric-entities): New variable. 8 * mm-util.el (mm-extra-numeric-entities): New variable.
diff --git a/lisp/gnus/nnir.el b/lisp/gnus/nnir.el
index 750218d4a9a..66222fe7937 100644
--- a/lisp/gnus/nnir.el
+++ b/lisp/gnus/nnir.el
@@ -656,17 +656,14 @@ Add an entry here when adding a new search engine.")
656 article) 656 article)
657 (save-excursion 657 (save-excursion
658 (let ((artfullgroup (nnir-article-group article)) 658 (let ((artfullgroup (nnir-article-group article))
659 (artno (nnir-article-number article)) 659 (artno (nnir-article-number article)))
660 ;; Bug?
661 ;; Why must we bind nntp-server-buffer here? It won't
662 ;; work if `buf' is used, say. (Of course, the set-buffer
663 ;; line below must then be updated, too.)
664 (nntp-server-buffer (or to-buffer nntp-server-buffer)))
665 (set-buffer nntp-server-buffer)
666 (erase-buffer)
667 (message "Requesting article %d from group %s" 660 (message "Requesting article %d from group %s"
668 artno artfullgroup) 661 artno artfullgroup)
669 (gnus-request-article artno artfullgroup nntp-server-buffer) 662 (if to-buffer
663 (with-current-buffer to-buffer
664 (let ((gnus-article-decode-hook nil))
665 (gnus-request-article-this-buffer artno artfullgroup)))
666 (gnus-request-article artno artfullgroup))
670 (cons artfullgroup artno))))) 667 (cons artfullgroup artno)))))
671 668
672(deffoo nnir-request-move-article (article group server accept-form 669(deffoo nnir-request-move-article (article group server accept-form
@@ -1378,10 +1375,7 @@ Tested with Namazu 2.0.6 on a GNU/Linux system."
1378;; gmane interface 1375;; gmane interface
1379(defun nnir-run-gmane (query srv &optional groups) 1376(defun nnir-run-gmane (query srv &optional groups)
1380 "Run a search against a gmane back-end server." 1377 "Run a search against a gmane back-end server."
1381 (if (gnus-string-match-p 1378 (if (gnus-string-match-p "gmane" srv)
1382 "gmane.org$"
1383 (or (cadr (assoc 'nntp-address (cddr (gnus-server-to-method srv))))
1384 ""))
1385 (let* ((case-fold-search t) 1379 (let* ((case-fold-search t)
1386 (qstring (cdr (assq 'query query))) 1380 (qstring (cdr (assq 'query query)))
1387 (server (cadr (gnus-server-to-method srv))) 1381 (server (cadr (gnus-server-to-method srv)))