From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mueen Nawaz Subject: Re: Emacs macros and capture Date: Sat, 07 Jan 2012 11:06:25 -0800 Message-ID: <8762gns572.fsf@fester.com> References: <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]:60425) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjbbF-0000WG-0S for emacs-orgmode@gnu.org; Sat, 07 Jan 2012 14:06:41 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RjbbD-0002YM-O1 for emacs-orgmode@gnu.org; Sat, 07 Jan 2012 14:06:40 -0500 Received: from lo.gmane.org ([80.91.229.12]:58920) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RjbbD-0002YG-Ir for emacs-orgmode@gnu.org; Sat, 07 Jan 2012 14:06:39 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1RjbbC-0006vr-DF for emacs-orgmode@gnu.org; Sat, 07 Jan 2012 20:06:38 +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 ; Sat, 07 Jan 2012 20:06:38 +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 ; Sat, 07 Jan 2012 20:06:38 +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 *Bump!* Anyone? Mueen Nawaz writes: > 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. > > >