From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tassilo Horn Subject: Re: Integration of Org mode and Gnus Date: Wed, 18 Jul 2007 14:54:02 +0200 Message-ID: <87hco1g9ed.fsf@baldur.tsdh.de> References: <87y7hef1yh.fsf@baldur.tsdh.de> <87ps2qexjh.fsf@baldur.tsdh.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1IB93B-0000I3-DL for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 08:54:41 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IB936-0000EU-Gd for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 08:54:40 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IB936-0000EQ-Cl for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 08:54:36 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1IB935-000439-0q for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 08:54:35 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IB92h-0006pR-Rt for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 14:54:11 +0200 Received: from dhcp60.uni-koblenz.de ([141.26.71.60]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2007 14:54:11 +0200 Received: from tassilo by dhcp60.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2007 14:54:11 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org "Georg C. F. Greve" writes: > >> If you could do that and submit it back to Gnus, that would be > >> great. > > th> I just found out that this is not needed. You can use the > th> `gnus-summary-article-move-hook'. Each function of that hook will > th> be run with the arguments > > th> - action: move/copy/respool/crosspost > th> - Some data vector, dunno its use... > th> - original group > th> - destination group > th> - select method > > th> So you could write a delegate function that first add-hooks a > th> function that sets a custom variable to the destination > th> group. Then it calls `gnus-summary-move-article'. When that > th> returns you can create the org-link and remove the function from > th> the hook again. > > I think I don't quite understand how this solves the problem. > > This sounds like I should set the target group dynamically in the hook > when moving the article. But I can determine the group simply by > calling > > (gnus-summary-move-article nil "") But `gnus-summary-move-article' is the one who asks you for the group name when you do `B m' with some articles. > So I know which group the articles end up in, but I don't know which > article number they got in that group -- but that is the basic > prerequisite to be able to link to them. Uh, yes. I think I got you wrong. I thought you only needed the group where the article was moved to. Maybe you can use that and the message-id to link to the message without requiring the registry. Have a look at Bastien's patch. > I'm sorry to ask a question that may be stupid, but how would I get > the article number(s) of the message(s) that have been moved by doing > the above? I don't have any clue. :-) Bye, Tassilo