[Orgmode] Re: Store link upon sending a message

2011-01-05 Thread Ulf Stegemann
Hi Bastien, Bastien wrote: > Ulf Stegemann writes: > >> (defun ulf-message-send-and-org-gnus-store-link (&optional arg) > > This is something I've been trying to achieve for very long! Great you > found a solution. A minor suggestion: the function should make sure > the buffer is not killed aft

Re: [Orgmode] Re: Store link upon sending a message

2011-01-04 Thread Bastien
Hi Ulf, Ulf Stegemann writes: > (defun ulf-message-send-and-org-gnus-store-link (&optional arg) This is something I've been trying to achieve for very long! Great you found a solution. A minor suggestion: the function should make sure the buffer is not killed after the message is sent. I a

Re: [Orgmode] Re: Store link upon sending a message

2010-11-12 Thread Eric S Fraga
Ulf Stegemann writes: > Eric S. Fraga wrote: > >> Thanks. I realised after sending my earlier message that this is going >> to be quite complicated. There's no point in storing a link when the >> message is actually sent (after all, that will be sometime later). I >> would want to store the l

[Orgmode] Re: Store link upon sending a message

2010-11-12 Thread Ulf Stegemann
Eric S. Fraga wrote: > Thanks. I realised after sending my earlier message that this is going > to be quite complicated. There's no point in storing a link when the > message is actually sent (after all, that will be sometime later). I > would want to store the link when I send the message to

Re: [Orgmode] Re: Store link upon sending a message

2010-11-12 Thread Eric S Fraga
Ulf Stegemann writes: [...] > > If the hook approach does not work you could also advise > `gnus-inews-do-gcc', the function that actually creates the message > copies ... > > ... or you could replace `gnus-inews-do-gcc', e.g. replace the > call to `message-send-and-exit' in > `ulf-message-send-

[Orgmode] Re: Store link upon sending a message

2010-11-12 Thread Ulf Stegemann
Ulf Stegemann wrote: > Eric S. Fraga wrote: > >> Ulf Stegemann writes: >> >>> I came back to the matter of storing an org link to a copy of a message >>> upon sending that message. The function below does just that and proves >>> to be quite useful together with a sensible key binding (if you

Re: [Orgmode] Re: Store link upon sending a message

2010-11-12 Thread Eric S Fraga
Ulf Stegemann writes: > Eric S. Fraga wrote: > >> Ulf Stegemann writes: >> >>> I came back to the matter of storing an org link to a copy of a message >>> upon sending that message. The function below does just that and proves >>> to be quite useful together with a sensible key binding (if you

[Orgmode] Re: Store link upon sending a message

2010-11-12 Thread Ulf Stegemann
Eric S. Fraga wrote: > Ulf Stegemann writes: > >> I came back to the matter of storing an org link to a copy of a message >> upon sending that message. The function below does just that and proves >> to be quite useful together with a sensible key binding (if you use Gnus >> and Gcc that is). >

Re: [Orgmode] Re: Store link upon sending a message

2010-11-12 Thread Eric S Fraga
Ulf Stegemann writes: > I came back to the matter of storing an org link to a copy of a message > upon sending that message. The function below does just that and proves > to be quite useful together with a sensible key binding (if you use Gnus > and Gcc that is). Very nice! Works very well.

[Orgmode] Re: Store link upon sending a message

2010-11-12 Thread Ulf Stegemann
I came back to the matter of storing an org link to a copy of a message upon sending that message. The function below does just that and proves to be quite useful together with a sensible key binding (if you use Gnus and Gcc that is). --8<--cut herestart---

[Orgmode] Re: Store link upon sending a message

2010-10-01 Thread Ulf Stegemann
Łukasz Stelmach wrote: > Ulf Stegemann writes: [snipped 15 lines] > AFAIR, message-id is used for org links rather than the articla > number. ah, right, that's at least what raw gnus-article links look like. I remember vaguely that this was different in the past and I obviously hadn't checke

[Orgmode] Re: Store link upon sending a message

2010-10-01 Thread Łukasz Stelmach
Ulf Stegemann writes: > It often happens to me that I send a message (Gnus) and need to keep a > reference of the mail just sent as link in an org file. [...] > It would of course be much nicer if the org link could be stored > automagically upon sending the message (or more precisely upon creat