From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Re: org-capture in message-mode buffer Date: Thu, 05 May 2011 09:02:38 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:42749) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHsaQ-0006I0-6m for emacs-orgmode@gnu.org; Thu, 05 May 2011 03:02:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHsaP-0007hh-6L for emacs-orgmode@gnu.org; Thu, 05 May 2011 03:02:58 -0400 Received: from lo.gmane.org ([80.91.229.12]:43579) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHsaO-0007hd-Rm for emacs-orgmode@gnu.org; Thu, 05 May 2011 03:02:57 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QHsaN-0001ZJ-E9 for emacs-orgmode@gnu.org; Thu, 05 May 2011 09:02:55 +0200 Received: from london.zeitform.net ([146.140.213.100]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 09:02:55 +0200 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 05 May 2011 09:02:55 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Leo wrote: > On 2011-05-04 21:14 +0800, Ulf Stegemann wrote: >> The idea behind `org-store-link' (which is triggered by `org-capture') >> in message mode is to store a link to a /sent/ message even though the >> message has not been sent by the time you call `org-store-link'. This >> currently works only with Gnus and only if there's a Gcc header present >> in the message you are working on. `org-gnus-store-link' needs the Gcc >> header to determine where the message would go once it has been sent (in >> order to create a link to it). The error you've encountered means that >> there hasn't been a Gcc header in your message when you've called >> `org-capture'. > > I think org-gnus-store-link is too aggressive. Hmmm, is it? Suppose that linking to a message yet to be archived wouldn't be there, then `org-store-link' will tell you `org-store-link: Cannot link to a buffer which is not visiting a file' when called in a message buffer (like in any other non-file buffer). > I also dislike the fact that it inserts the Message-Id header. As the org link to Gnus messages consists of the group and the message id the latter one is need (as is the first one, the Gcc header). No reliable message id, no org link. One may argue if it's a good idea to generate the message id when calling `org-store-link' but I think it's a fair tradeoff to accept this in order to get the link to the message yet to be archived. > Also, the stored link may be useless unless it is referenced in the > template chosen by the user. Hmmm, I'm not quite sure what your scenario is here. If you dislike the behaviour of `org-store-link' in message mode and furthermore do not want to store a link at all since your template does not use it, why do you call `org-capture' from the message mode buffer at all? Ulf