From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Re: Store link upon sending a message Date: Fri, 12 Nov 2010 17:07:21 +0100 Message-ID: References: <87wrq29qvi.fsf@dasa3.iem.pw.edu.pl> <87oc9u7iet.fsf@ucl.ac.uk> <87oc9u5yjz.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from [140.186.70.92] (port=44941 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGwA8-0002EU-0i for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 11:07:40 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGwA6-0008LW-JI for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 11:07:39 -0500 Received: from lo.gmane.org ([80.91.229.12]:56977) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGwA6-0008LG-CP for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 11:07:38 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1PGwA1-0002an-PU for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 17:07:33 +0100 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Nov 2010 17:07:33 +0100 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 12 Nov 2010 17:07:33 +0100 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 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 the delay queue > (so that I can do something with the link, of course) so there really > need to be two versions of your function. > > Should be doable. I'll think about it some more. ah, now I seem to understand. With your scenario I'd probably remove the call to `message-send-and-exit' from `ulf-message-send-and-org-gnus-store-link' and advise both `message-send-and-exit' and `gnus-delay-article' to run the modified function before execution. This would leave you with a stored link right after a `C-c C-c' and `C-c C-j'. But in case of the latter, the org link will be bogus until the message has actually been sent. Could that be a way to go for you? Ulf