Re: [O] Emacs macros and capture

2012-01-07 Thread Mueen Nawaz

*Bump!*

Anyone?

Mueen Nawaz mailingli...@nawaz.org 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.pbfiflxh021...@athena.librarything.com][Email from 
 jer...@librarything.com: LibraryThing: State of the Thi]]
 From: jer...@librarything.com
 ID:201112151815.pbfiflxh021...@athena.librarything.com

 end example

 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: jer...@librarything.com
 ID:201112151815.pbfiflxh021...@athena.librarything.com

 end example

 As you can see, it recorded everything _but_ the link (the most
 important part). Any idea why this happens?

 Thanks.








[O] Emacs macros and capture

2011-12-28 Thread Mueen Nawaz
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.pbfiflxh021...@athena.librarything.com][Email from 
jer...@librarything.com: LibraryThing: State of the Thi]]
From: jer...@librarything.com
ID:201112151815.pbfiflxh021...@athena.librarything.com

end example

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: jer...@librarything.com
ID:201112151815.pbfiflxh021...@athena.librarything.com

end example

As you can see, it recorded everything _but_ the link (the most
important part). Any idea why this happens?

Thanks.