From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: Re: Store link upon sending a message Date: Fri, 12 Nov 2010 16:03:22 +0000 Message-ID: <87d3qa5y2d.fsf@ucl.ac.uk> References: <87wrq29qvi.fsf@dasa3.iem.pw.edu.pl> <87oc9u7iet.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=51248 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PGw65-0005di-Jf for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 11:03:30 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PGw64-0006xY-4W for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 11:03:29 -0500 Received: from vscane-a2.ucl.ac.uk ([144.82.108.42]:34079) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PGw64-0006wg-0E for emacs-orgmode@gnu.org; Fri, 12 Nov 2010 11:03:28 -0500 In-Reply-To: (Ulf Stegemann's message of "Fri, 12 Nov 2010 16:54:13 +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: Ulf Stegemann Cc: emacs-orgmode@gnu.org 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-and-org-gnus-store-link' with something like > `gnus-inews-do-gcc-orig' and save it as e.g. > `my-gnus-gcc-and-org-store-link'. Then you could do something like > > (fset 'gnus-inews-do-gcc-orig (symbol-function 'gnus-inews-do-gcc)) > (fset 'gnus-inews-do-gcc 'my-gnus-gcc-and-org-store-link) > > ... but that's all untested ;) two very good suggestions. Thanks! I'll try to play with these over the weekend if I get a chance. -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 23.2.1 : using Org-mode version 7.3 (release_7.3.42.g0fd5ec)