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 13:55:30 +0200 Message-ID: <87ps2qexjh.fsf@baldur.tsdh.de> References: <87y7hef1yh.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 1IB88C-00081A-Br for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 07:55:48 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1IB889-00080K-Ei for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 07:55:46 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1IB889-00080H-Ao for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 07:55:45 -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 1IB888-0003UZ-Qi for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 07:55:45 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1IB881-0005lA-Jg for emacs-orgmode@gnu.org; Wed, 18 Jul 2007 13:55:37 +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 13:55:37 +0200 Received: from tassilo by dhcp60.uni-koblenz.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 18 Jul 2007 13:55:37 +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: Hi Georg, > th> Would that help? > > Yes, I think so. > > Although I think the function supports moving several marked articles, > so the return value should technically be a list. As far as I can see it can only move several articles to exactly one group. > th> This could be implemented very easy. > > If you could do that and submit it back to Gnus, that would be great. I just found out that this is not needed. You can use the `gnus-summary-article-move-hook'. Each function of that hook will be run with the arguments - action: move/copy/respool/crosspost - Some data vector, dunno its use... - original group - destination group - select method So you could write a delegate function that first add-hooks a function that sets a custom variable to the destination group. Then it calls `gnus-summary-move-article'. When that returns you can create the org-link and remove the function from the hook again. Bye, Tassilo -- No person, no idea, and no religion deserves to be illegal to insult, not even the Church of Emacs. (Richard M. Stallman)