From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/80117 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: Re: nnir, gnus-goto-article and such Date: Thu, 29 Sep 2011 09:40:54 -0400 Message-ID: References: <87pqinvvg4.fsf@lifelogs.com> <87aa9pu1tx.fsf@lifelogs.com> <878vp8nq6y.fsf@lifelogs.com> <87sjnfn486.fsf@lifelogs.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1317303862 16664 80.91.229.12 (29 Sep 2011 13:44:22 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 29 Sep 2011 13:44:22 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28411@lists.math.uh.edu Thu Sep 29 15:44:18 2011 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1R9GuP-0005tN-H5 for ding-account@gmane.org; Thu, 29 Sep 2011 15:44:17 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1R9GuL-0007QG-G5; Thu, 29 Sep 2011 08:44:13 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R9GuJ-0007Pq-OO for ding@lists.math.uh.edu; Thu, 29 Sep 2011 08:44:11 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R9GuF-0000f0-NX for ding@lists.math.uh.edu; Thu, 29 Sep 2011 08:44:11 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R9GuE-0005wG-Bs for ding@gnus.org; Thu, 29 Sep 2011 15:44:06 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R9GuE-0005n8-4H for ding@gnus.org; Thu, 29 Sep 2011 15:44:06 +0200 Original-Received: from h-67-100-201-170.cmbrmaor.static.covad.net ([67.100.201.170]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Sep 2011 15:44:06 +0200 Original-Received: from dave by h-67-100-201-170.cmbrmaor.static.covad.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Sep 2011 15:44:06 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 66 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: h-67-100-201-170.cmbrmaor.static.covad.net User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) Cancel-Lock: sha1:13HJrd5Zefh2rmK3bov4VQ7cRF4= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:80117 Archived-At: on Thu Sep 29 2011, Ted Zlatanov wrote: > On Wed, 28 Sep 2011 22:06:37 -0400 Dave Abrahams wrote: > > DA> So, thanks, you seem to have gotten me over one hump... here's my patch: > DA> Modified lisp/gnus-sum.el > DA> diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el > DA> index 423de35..8452bb9 100644 > DA> --- a/lisp/gnus-sum.el > DA> +++ b/lisp/gnus-sum.el > DA> @@ -9077,6 +9077,13 @@ non-numeric or nil fetch the number specified by the > DA> (setq number (gnus-summary-insert-subject message-id))) > DA> ;; and display the article. > DA> (gnus-summary-select-article nil nil nil number) > DA> + (when (bound-and-true-p gnus-registry-install) > DA> + (let ((header (gnus-summary-article-header (gnus-summary-article-number)))) > DA> + (gnus-registry-handle-action > DA> + message-id nil > DA> + (gnus-method-to-full-server-name gnus-override-method) > DA> + (mail-header-subject header) > DA> + (mail-header-from header)))) > DA> (throw 'found t))) > DA> (gnus-message 3 "Couldn't fetch article %s" message-id))))))) > > DA> But now, of course, gnus-warp-to-article doesn't consult the registry to > DA> find out the article's group, so `A T' still fails. For some reason, it > DA> goes directly to the backend, only one of which supports warping: nnir. > > I think you need to explicitly enable nnregistry so that will work (see > the comments). in nnregistry.el there are no comments. in gnus-registry.el it says ;; You should also consider using the nnregistry backend to look up ;; articles. See the Gnus manual for more information. The Gnus manual says almost nothing useful about nnregistry. It shows how it can be used in gnus-refer-article-method, and I have done that. What further enabling do you have in mind? > Perhaps it should be automatically loaded when the Gnus registry is > initialized. Andy Cohen did that work IIRC so I don't know if there > are any reasons not to do it. It seems reasonable to me. > > DA> [Aside: it seems like this territory is full of components that > DA> could in principle be nicely generalized, but whose implementation > DA> has only been made to work for one specific usage scenario] > > I can't tell, I was not involved with writing these components. IIUC from reading elsewhere you rewrote the registry. > At least for the registry I know it's optional so we can't depend on > it. I'm not sure what "optional" means in this context. Is Gnus going to ship without the registry code? -- Dave Abrahams BoostPro Computing http://www.boostpro.com