Gnus development mailing list
 help / color / mirror / Atom feed
From: Dave Abrahams <dave@boostpro.com>
To: Lars Ingebrigtsen <larsi@gnus.org>
Cc: ding@gnus.org
Subject: Re: What is a "virtual" group?
Date: Thu, 31 Jan 2013 19:18:09 +0100	[thread overview]
Message-ID: <m27gmtgqse.fsf@surfer-30-3-59.surfnet.iacbox> (raw)
In-Reply-To: <m2a9t1n7gn.fsf@cube.luannocracy.com> (Dave Abrahams's message of "Tue, 25 Dec 2012 16:32:40 -0500")


on Tue Dec 25 2012, Dave Abrahams <dave-AT-boostpro.com> wrote:

>>>>> * Does the check for virtual-ness in gnus-warp-to-article actually
>>>>>   belong there?  After all, real groups shouldn't implement the
>>>>>   warp-to-article backend function, should they?
>>>>
>>>> I don't know.
>>>
>>> Would you be open to a patch that removes the check?
>>
>> I'm not familiar with that code.
>
> Sorry, I don't know how to interpret your answer.

Bump on this.  I get a sense the length of the message may have put you
off.  I'll try to make this super-simple for you:

* I would like to remove the check for virtual-ness in
  gnus-warp-to-article.

* I believe that removal to be OK.  I'll test it here, of course, and
  I'm a daily user of warping.

* If I don't find any problems with it, would that be enough to convince
  you that the change is OK and to accept the patch?

* If not, what would it take to convince you to accept the patch?

All I really need from you is answers to the last two bullets above

The rest of what's below is background, designed to convince you it
might be worth taking a risk on such a change to get a really cool
feature, but you can ignore it if you're too busy.

> I am trying to figure out how to contribute a really cool (and for me,
> essential) piece of functionality to Gnus: the ability to, given a
> message-id, find and display the message in the context of the entire
> thread in which that message participates, even across groups.  Of
> course I'm presuming you think that's worth having in Gnus, but I could
> be wrong.  If so, just tell me and I'll stop pestering you.
>
> I have implemented something that works, but currently requires making
> nndoc groups virtual or disabling that check.  You've already said that
> making nndoc groups virtual is inappropriate.  If disabling the check is
> appropriate, that would solve the problem easily.  
>
> The other possible approach would be to discover a way to implement the
> following function using some kind of virtual group (instead of nndoc).
> I think that's probably the best approach but I have tried myself many
> times and failed, and I have asked here many times for guidance without
> success... so I eventually gave up.
>
> #+begin_src lisp
> (defun gnus-goto-article (message-id)
>   (with-temp-buffer
>     (erase-buffer)
>     ;; Insert dummy article
>     (insert (format "From nobody Tue Sep 13 22:05:34 2011\n\n"))
>     (gnus-group-read-ephemeral-group
>      message-id
>      `(nndoc ,message-id
>              (nndoc-address ,(current-buffer))
>              (nndoc-article-type mbox))
>      :activate
>      (cons (current-buffer) gnus-current-window-configuration)
>      (not :request-only)
>      '(-1) ; :select-articles
>      (not :parameters)
>      0     ; :number
>      )
>     (gnus-summary-refer-article message-id)
>     ))
> #+end_src

-- 
Dave Abrahams
BoostPro Computing                  Software Development        Training
http://www.boostpro.com             Clang/LLVM/EDG Compilers  C++  Boost



  parent reply	other threads:[~2013-01-31 18:18 UTC|newest]

Thread overview: 19+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-09-15 23:53 Dave Abrahams
2012-09-16 10:57 ` Steinar Bang
2012-09-16 15:08   ` Dave Abrahams
2012-09-16 15:15     ` Adam Sjøgren
2012-09-16 16:52     ` Steinar Bang
2012-12-25 12:26     ` Lars Ingebrigtsen
2012-12-25 20:23       ` Dave Abrahams
2012-12-25 20:31         ` Lars Ingebrigtsen
2012-12-25 20:51           ` Dave Abrahams
2012-12-25 20:59             ` Lars Ingebrigtsen
2012-12-25 21:32               ` Dave Abrahams
2012-12-25 21:45                 ` Lars Ingebrigtsen
2013-01-31 18:10                   ` Dave Abrahams
2013-01-31 18:18                 ` Dave Abrahams [this message]
2013-01-31 23:18                   ` Eric S Fraga
2013-02-20  5:06                     ` Dave Abrahams
2013-04-22  8:38                       ` Leonidas Tsampros
2013-04-25 13:50                         ` Dave Abrahams
2013-04-25 17:48                           ` Leonidas Tsampros

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=m27gmtgqse.fsf@surfer-30-3-59.surfnet.iacbox \
    --to=dave@boostpro.com \
    --cc=ding@gnus.org \
    --cc=larsi@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).