From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/79592 Path: news.gmane.org!not-for-mail From: Dave Abrahams Newsgroups: gmane.emacs.gnus.general Subject: [Solved] How to create an empty ephemeral group? Date: Thu, 28 Jul 2011 15:38:46 -0400 Message-ID: References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: dough.gmane.org 1311881965 4377 80.91.229.12 (28 Jul 2011 19:39:25 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Thu, 28 Jul 2011 19:39:25 +0000 (UTC) Cc: John Wiegley To: ding@gnus.org Original-X-From: ding-owner+M27888@lists.math.uh.edu Thu Jul 28 21:39:21 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 1QmWQS-0006rL-AL for ding-account@gmane.org; Thu, 28 Jul 2011 21:39:20 +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 1QmWQK-0006Tj-Nf; Thu, 28 Jul 2011 14:39:12 -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 1QmWQJ-0006TR-9z for ding@lists.math.uh.edu; Thu, 28 Jul 2011 14:39:11 -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 1QmWQ9-00068F-1n for ding@lists.math.uh.edu; Thu, 28 Jul 2011 14:39:11 -0500 Original-Received: from lo.gmane.org ([80.91.229.12]) by quimby.gnus.org with esmtp (Exim 4.72) (envelope-from ) id 1QmWQ7-0003eF-MP for ding@gnus.org; Thu, 28 Jul 2011 21:38:59 +0200 Original-Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QmWQ7-0006eW-G2 for ding@gnus.org; Thu, 28 Jul 2011 21:38:59 +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 ; Thu, 28 Jul 2011 21:38:59 +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 ; Thu, 28 Jul 2011 21:38:59 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 45 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:tcJfIGyuiNLmYmLE3QY6QFvIE1c= X-Spam-Score: -6.1 (------) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:79592 Archived-At: on Wed Jul 27 2011, Dave Abrahams wrote: > Hi, > > I'm trying to look up articles by message-Id, e.g. from Org links. > Here's what I'm using today: > > (defun gnus-goto-article (message-id) > (let ((nnir-imap-default-search-key "imap")) > (gnus-group-make-nnir-group > nil > `((query . ,(concat "header message-id " message-id)) > (criteria . "") > (server . "nnimap:BoostPro") ))) > (gnus-summary-refer-article message-id)) > > This is decent, but it would be so much cooler if I could use > gnus-refer-article-method to look for messages that might be in > newsgroups, gmane, google, etc. > > So I figured I'd just create an empty ephemeral group and then > > (gnus-summary-refer-article "") > > ...which I have proved to myself works in an arbitrary group. But I > can't figure out how to create an empty ephemeral group. > > Hints? Solved: (defun gnus-goto-article (message-id) (gnus-group-read-ephemeral-group message-id `(nneething ,temporary-file-directory) t nil nil nil nil 0) (gnus-summary-refer-article message-id)) This is kind of a nasty hack, but it works. Would love to dispense with the nneething group... -- Dave Abrahams BoostPro Computing http://www.boostpro.com