[Orgmode] Re: Integration of Org mode and Gnus
Georg C. F. Greve [EMAIL PROTECTED] writes: Hi Georg, Moving email is trivial -- you just need to call gnus-summary-move-article to move things to the place you want to archive them. But that function does not return the URL of the moved article (as one might hope). Would that help? This could be implemented very easy. As far as I can see nothing depends on the current return value of `gnus-summary-move-article'. Bye, Tassilo -- A morning without coffee is like something without something else. ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Integration of Org mode and Gnus
On Wed, 18 Jul 2007 12:20:06 +0200 Tassilo Horn [EMAIL PROTECTED] wrote: to move things to the place you want to archive them. But that function does not return the URL of the moved article (as one might hope). 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. But otherwise yes: This would help me solve my immediate problem. :) th This could be implemented very easy. If you could do that and submit it back to Gnus, that would be great. Regards, Georg -- Georg C. F. Greve [EMAIL PROTECTED] Free Software Foundation Europe (http://fsfeurope.org) Join the Fellowship and protect your freedom! (http://www.fsfe.org) What everyone should know about DRM (http://DRM.info) pgpLVXo0vGjh2.pgp Description: PGP signature ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Integration of Org mode and Gnus
Georg C. F. Greve [EMAIL PROTECTED] 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) ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
Re: [Orgmode] Re: Integration of Org mode and Gnus
On Wed, 18 Jul 2007 13:55:30 +0200 Tassilo Horn [EMAIL PROTECTED] wrote: Although I think the function supports moving several marked articles, so the return value should technically be a list. th As far as I can see it can only move several articles to exactly th one group. Yes, exactly. 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 group. Then th it calls `gnus-summary-move-article'. When that returns you can th create the org-link and remove the function from 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 GROUP) 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. 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? Regards, Georg -- Georg C. F. Greve [EMAIL PROTECTED] Free Software Foundation Europe (http://fsfeurope.org) Join the Fellowship and protect your freedom! (http://www.fsfe.org) What everyone should know about DRM (http://DRM.info) pgpMkBFBuiSj5.pgp Description: PGP signature ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode
[Orgmode] Re: Integration of Org mode and Gnus
Georg C. F. Greve [EMAIL PROTECTED] 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 GROUP) 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 ___ Emacs-orgmode mailing list Emacs-orgmode@gnu.org http://lists.gnu.org/mailman/listinfo/emacs-orgmode