From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79952 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: gnus-warp-to-article (was: nnir, gnus-goto-article and such) Date: Fri, 16 Sep 2011 11:05:43 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1316186486 9362 80.91.229.12 (16 Sep 2011 15:21:26 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Fri, 16 Sep 2011 15:21:26 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M28246@lists.math.uh.edu Fri Sep 16 17:21:22 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 1R4aEE-0001Fu-6D for ding-account@gmane.org; Fri, 16 Sep 2011 17:21:22 +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 1R4aE3-0002e6-Ms; Fri, 16 Sep 2011 10:21:11 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1R4aE2-0002dv-I1 for ding@lists.math.uh.edu; Fri, 16 Sep 2011 10:21:10 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.76) (envelope-from ) id 1R4aE1-0002m1-Bz for ding@lists.math.uh.edu; Fri, 16 Sep 2011 10:21:10 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1R4aDz-0006Co-5R for ding@gnus.org; Fri, 16 Sep 2011 17:21:07 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1R4aDu-00010g-Ng for ding@gnus.org; Fri, 16 Sep 2011 17:21:02 +0200 Original-Received: from 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com ([207.172.223.249]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Sep 2011 17:21:02 +0200 Original-Received: from dave by 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 16 Sep 2011 17:21:02 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 47 Original-X-Complaints-To: usenet@dough.gmane.org X-Gmane-NNTP-Posting-Host: 207-172-223-249.c3-0.smr-ubr3.sbo-smr.ma.static.cable.rcn.com User-Agent: Gnus/5.110018 (No Gnus v0.18) Emacs/23.3 (darwin) Cancel-Lock: sha1:+2YKw7fWG2yuI/YnChaG8BUoU0c= X-Spam-Score: -5.4 (-----) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79952 Archived-At: on Thu Sep 15 2011, Dave Abrahams wrote: > I have this nifty function that lets me look up an article by > message-id, no matter which of my groups it's in: > (defun gnus-goto-article (message-id) > (with-current-buffer > (get-buffer-create (concat "*goto-article " message-id "*")) > (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 > (not 'quit-config) > (not 'request-only) > '(-1) ; 'select-articles > (not 'parameters) > 0 ; ' number > ) > (gnus-summary-refer-article message-id))) > Now there are just two problems with this: > > 1. (very minor): if I do `/ o' in the resulting buffer, I see the dummy > article, which is needed if I want to activate the group. How can I > remove it from the group after activation? > > 2. (important) I'd like to see the whole thread (e.g. with `A T'). That > works fine if it's an IMAP article because nnir finds it. However, > nnir doesn't work on nntp newsgroups. > > It seems to me what's missing is some way of recording the source of > the message retrieved by gnus-summary-refer-article, and some way of > asking for a thread search in an nntp server. Ideas? Further investigation reveals that groups supporting gnus-warp-to-article (virtual groups and nnir groups) already seem to do something like that, and in such a group, `A T' would "just work." If anyone is able to offer further guidance here it would be most welcome. -- Dave Abrahams BoostPro Computing http://www.boostpro.com