Gnus development mailing list
 help / color / mirror / Atom feed
* [PATCH] nnir vs. referring articles
@ 2006-05-31 19:17 Andreas Seltenreich
  2006-05-31 22:09 ` Reiner Steib
  0 siblings, 1 reply; 5+ messages in thread
From: Andreas Seltenreich @ 2006-05-31 19:17 UTC (permalink / raw)


[-- Attachment #1: Type: text/plain, Size: 449 bytes --]

Hi,

isn't the check for a message-id supposed to be in
nnir-request-article instead of nnir-retrieve-headers?

Trying to refer articles by message-id
(gnus-summary-refer-parent-article, etc) ends in an error instead of
gnus continuing to process gnus-refer-article-method.

regards,
andreas

2006-05-31  Andreas Seltenreich  <uwi7@rz.uni-karlsruhe.de>

	* nnir.el (nnir-retrieve-headers, nnir-request-article): Move check for
	message-id request.


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: nnir.el.diff --]
[-- Type: text/x-patch, Size: 2700 bytes --]

Index: nnir.el
===================================================================
RCS file: /usr/local/cvsroot/gnus/contrib/nnir.el,v
retrieving revision 7.12
diff -c -r7.12 nnir.el
*** nnir.el	29 May 2006 22:13:00 -0000	7.12
--- nnir.el	31 May 2006 19:05:37 -0000
***************
*** 801,811 ****
  	  server)
        (while (not (null artlist))
          (setq art (car artlist))
-         (or (numberp art)
-             (nnheader-report
-              'nnir
-              "nnir-retrieve-headers doesn't grok message ids: %s"
-              art))
          (setq artitem (nnir-artlist-article nnir-artlist art))
          (setq artrsv (nnir-artitem-rsv artitem))
          (setq artfullgroup (nnir-artitem-group artitem))
--- 801,806 ----
***************
*** 854,875 ****
  
  (deffoo nnir-request-article (article
                                &optional group server to-buffer)
!   (save-excursion
!     (let* ((artitem (nnir-artlist-article nnir-artlist
!                                           article))
!            (artfullgroup (nnir-artitem-group artitem))
!            (artno (nnir-artitem-number artitem))
!            ;; Bug?
!            ;; Why must we bind nntp-server-buffer here?  It won't
!            ;; work if `buf' is used, say.  (Of course, the set-buffer
!            ;; line below must then be updated, too.)
!            (nntp-server-buffer (or to-buffer nntp-server-buffer)))
!       (set-buffer nntp-server-buffer)
!       (erase-buffer)
!       (message "Requesting article %d from group %s"
!                artno artfullgroup)
!       (gnus-request-article artno artfullgroup nntp-server-buffer)
!       (cons artfullgroup artno))))
  
  
  (nnoo-define-skeleton nnir)
--- 849,875 ----
  
  (deffoo nnir-request-article (article
                                &optional group server to-buffer)
!   (if (stringp article)
!       (nnheader-report
!        'nnir
!        "nnir-retrieve-headers doesn't grok message ids: %s"
!        article)
!     (save-excursion
!       (let* ((artitem (nnir-artlist-article nnir-artlist
! 					    article))
! 	     (artfullgroup (nnir-artitem-group artitem))
! 	     (artno (nnir-artitem-number artitem))
! 	     ;; Bug?
! 	     ;; Why must we bind nntp-server-buffer here?  It won't
! 	     ;; work if `buf' is used, say.  (Of course, the set-buffer
! 	     ;; line below must then be updated, too.)
! 	     (nntp-server-buffer (or to-buffer nntp-server-buffer)))
! 	(set-buffer nntp-server-buffer)
! 	(erase-buffer)
! 	(message "Requesting article %d from group %s"
! 		 artno artfullgroup)
! 	(gnus-request-article artno artfullgroup nntp-server-buffer)
! 	(cons artfullgroup artno)))))
  
  
  (nnoo-define-skeleton nnir)

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2006-06-12 23:07 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-31 19:17 [PATCH] nnir vs. referring articles Andreas Seltenreich
2006-05-31 22:09 ` Reiner Steib
2006-05-31 22:36   ` Andreas Seltenreich
2006-06-12 22:26   ` Andreas Seltenreich
2006-06-12 23:07     ` Andreas Seltenreich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).