From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mueen Nawaz Subject: Emacs macros and capture Date: Wed, 28 Dec 2011 15:46:56 -0800 Message-ID: <874nwktg27.fsf@fester.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:45202) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg3DH-0003aL-Mn for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 18:47:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rg3DG-0002si-AS for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 18:47:15 -0500 Received: from lo.gmane.org ([80.91.229.12]:47590) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rg3DG-0002se-30 for emacs-orgmode@gnu.org; Wed, 28 Dec 2011 18:47:14 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1Rg3DE-0002Wx-CX for emacs-orgmode@gnu.org; Thu, 29 Dec 2011 00:47:12 +0100 Received: from c-71-237-233-41.hsd1.or.comcast.net ([71.237.233.41]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Dec 2011 00:47:12 +0100 Received: from mailinglists by c-71-237-233-41.hsd1.or.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 29 Dec 2011 00:47:12 +0100 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 Hi, I'm seeing some weird behavior with my capture template setup. I have the following in my capture templates: ("r" "Reply" entry (file+headline "~/org/gtd/gtd.org" "Reply") "* TODO %:subject :@respond:@email: \n %u\n %i\n %a\nFrom: %:from\nID:%:message-id\n %?" :immediate-finish t) What this template does is create a new headline under "Reply" in my gtd.org file with the subject as the title of the headline. It will then place a link to the email as well as some other metadata. Here's an example: *** TODO LibraryThing: State of the Thing - December 2011 :@review:@email: [2011-12-28 Wed] [[notmuch:id:201112151815.pBFIFLxh021659@athena.librarything.com][Email from jeremy@librarything.com: LibraryThing: State of the Thi]] From: jeremy@librarything.com ID:201112151815.pBFIFLxh021659@athena.librarything.com That works fine. Now if I record the keystrokes as a macro, and then execute the macro, here is what I get (same email as above): *** TODO LibraryThing: State of the Thing - December 2011 :@review:@email: [2011-12-28 Wed] From: jeremy@librarything.com ID:201112151815.pBFIFLxh021659@athena.librarything.com As you can see, it recorded everything _but_ the link (the most important part). Any idea why this happens? Thanks.