emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Mueen Nawaz <mailinglists@nawaz.org>
To: emacs-orgmode@gnu.org
Subject: Re: Emacs macros and capture
Date: Sat, 07 Jan 2012 11:06:25 -0800	[thread overview]
Message-ID: <8762gns572.fsf@fester.com> (raw)
In-Reply-To: 874nwktg27.fsf@fester.com


*Bump!*

Anyone?

Mueen Nawaz <mailinglists@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.pBFIFLxh021659@athena.librarything.com][Email from jeremy@librarything.com: LibraryThing: State of the Thi]]
> From: jeremy@librarything.com
> ID:201112151815.pBFIFLxh021659@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: jeremy@librarything.com
> ID:201112151815.pBFIFLxh021659@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.
>
>
>

      reply	other threads:[~2012-01-07 19:06 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-28 23:46 Emacs macros and capture Mueen Nawaz
2012-01-07 19:06 ` Mueen Nawaz [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8762gns572.fsf@fester.com \
    --to=mailinglists@nawaz.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).