From mboxrd@z Thu Jan 1 00:00:00 1970 From: Ulf Stegemann Subject: Re: org-capture in message-mode buffer Date: Wed, 04 May 2011 15:14:59 +0200 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51937) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHbvG-000170-6l for emacs-orgmode@gnu.org; Wed, 04 May 2011 09:15:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QHbvC-00039u-1E for emacs-orgmode@gnu.org; Wed, 04 May 2011 09:15:22 -0400 Received: from lo.gmane.org ([80.91.229.12]:35681) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QHbvB-00039d-Qz for emacs-orgmode@gnu.org; Wed, 04 May 2011 09:15:17 -0400 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1QHbv7-0003Bh-8X for emacs-orgmode@gnu.org; Wed, 04 May 2011 15:15:13 +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 ; Wed, 04 May 2011 15:15:13 +0200 Received: from ulf-news by london.zeitform.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 May 2011 15:15:13 +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: > I am running orgmode from git 2011-04-29 on Emacs 23.3.50. > > In a message mode buffer, M-x org-capture to get the following error: > > Debugger entered--Lisp error: (error "Can not create link: No Gcc header found.") > signal(error ("Can not create link: No Gcc header found.")) > error("Can not create link: No Gcc header found.") > org-gnus-store-link() > run-hook-with-args-until-success(org-gnus-store-link) > org-store-link(nil) > org-capture(nil) > call-interactively(org-capture nil nil) 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'. Ulf