Gnus development mailing list
 help / color / mirror / Atom feed
From: Dave Abrahams <dave@boostpro.com>
To: ding@gnus.org
Subject: Re: nnir, gnus-goto-article and such
Date: Wed, 28 Sep 2011 22:06:37 -0400	[thread overview]
Message-ID: <m2aa9odrv6.fsf@pluto.luannocracy.com> (raw)
In-Reply-To: <m2fwjgdu1h.fsf@pluto.luannocracy.com>

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


on Wed Sep 28 2011, Dave Abrahams <dave-AT-boostpro.com> wrote:

> What I'd want to do with the registry is get gnus-summary-refer-article
> to put in the registry the group in which it finds the article, so
> gnus-warp-to-article will go to *that* group when I try to get to the
> whole thread.
>
>> to = destination group, your group
>
> I don't think I want gnus to remember that the article is in my group.
> I want it to be like an nnir group, where Gnus remembers the group in
> which the article was originally found.

So, thanks, you seem to have gotten me over one hump... here's my patch:


[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: gnus-sum.patch --]
[-- Type: text/x-patch, Size: 893 bytes --]

	Modified   lisp/gnus-sum.el
diff --git a/lisp/gnus-sum.el b/lisp/gnus-sum.el
index 423de35..8452bb9 100644
--- a/lisp/gnus-sum.el
+++ b/lisp/gnus-sum.el
@@ -9077,6 +9077,13 @@ non-numeric or nil fetch the number specified by the
 		       (setq number (gnus-summary-insert-subject message-id)))
 	      ;; and display the article.
 	      (gnus-summary-select-article nil nil nil number)
+              (when (bound-and-true-p gnus-registry-install)
+                (let ((header (gnus-summary-article-header (gnus-summary-article-number))))
+                  (gnus-registry-handle-action
+                   message-id nil
+                   (gnus-method-to-full-server-name gnus-override-method)
+                   (mail-header-subject header)
+                   (mail-header-from header))))
 	      (throw 'found t)))
 	  (gnus-message 3 "Couldn't fetch article %s" message-id)))))))

[-- Attachment #3: Type: text/plain, Size: 716 bytes --]


But now, of course, gnus-warp-to-article doesn't consult the registry to
find out the article's group, so `A T' still fails.  For some reason, it
goes directly to the backend, only one of which supports warping: nnir.

[Aside: it seems like this territory is full of components that could in
principle be nicely generalized, but whose implementation has only been
made to work for one specific usage scenario]

would it work if nnregistry supported warping?  I don't really
understand where/how that backend comes into play.

> Note: nnir doesn't use the registry, but has its *own* record of which
> group was the source of each article.  Why?  Dunno.

-- 
Dave Abrahams
BoostPro Computing
http://www.boostpro.com

  reply	other threads:[~2011-09-29  2:06 UTC|newest]

Thread overview: 26+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-15 18:24 Dave Abrahams
2011-09-16 15:05 ` gnus-warp-to-article (was: nnir, gnus-goto-article and such) Dave Abrahams
2011-09-21 18:03 ` nnir, gnus-goto-article and such Lars Magne Ingebrigtsen
2011-09-21 21:16   ` John Wiegley
2011-09-22 13:01     ` Andrew Cohen
2011-09-26 19:17       ` Lars Magne Ingebrigtsen
2011-09-26 20:46       ` Dave Abrahams
2011-09-27  7:04         ` John Wiegley
2011-09-27 15:36           ` Dave Abrahams
2011-09-26 20:01   ` Dave Abrahams
2011-09-26 21:35     ` Ted Zlatanov
2011-09-27 15:35       ` Dave Abrahams
2011-09-27 21:12         ` Ted Zlatanov
2011-09-28 14:34           ` Dave Abrahams
2011-09-29  0:32             ` Ted Zlatanov
2011-09-29  1:19               ` Dave Abrahams
2011-09-29  2:06                 ` Dave Abrahams [this message]
2011-09-29  8:27                   ` Ted Zlatanov
2011-09-29 13:40                     ` Dave Abrahams
2011-09-29 14:00                       ` Ted Zlatanov
2011-09-29 14:40                         ` Dave Abrahams
2011-09-29 14:58                           ` Ted Zlatanov
2011-09-29 20:04                             ` Dave Abrahams
2011-09-29 23:40                               ` Ted Zlatanov
2011-09-29  8:22                 ` Ted Zlatanov
2011-09-27 16:04       ` Dave Abrahams

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m2aa9odrv6.fsf@pluto.luannocracy.com \
    --to=dave@boostpro.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).