emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Tim Cross <theophilusx@gmail.com>
To: Org-mode <emacs-orgmode@gnu.org>
Subject: [HELP} Capture Template
Date: Fri, 20 Nov 2020 05:41:49 +1100	[thread overview]
Message-ID: <875z61qjde.fsf@gmail.com> (raw)

I'm trying to get a capture template to work, but without luck. Not sure
what I'm doing wrong, but figured someone on this list could help by
pointing out my probably obvious error.

The template is

 ("e" "expense" entry
  (file+headline "~/Documents/org-data/refile.org" "Expenses")
  "* Expense: %^{Description} :EXPENSE:\n\n | Date | %u |\n | Description | %\1 |\n | Amount | %^{Amount} |\n"
  :empty-line-after 1)

The problem is with the %\1 expansion. According to the docs, the %\N
expansion is replaced with the Nth %^{PROMPT} input. i.e. %\1 should be
the data from the 1st %^{PROMPT} expansion (in this case

The problem is, it isn't. Instead, I get %^A as the result instead of
the text I enter with the first %^{Description} expansion. The rest of
the template works fine.

Anyone got any ideas?


Tim Cross

             reply	other threads:[~2020-11-19 18:43 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-11-19 18:41 Tim Cross [this message]
2020-11-19 19:10 ` Marco Wahl

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:

  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=875z61qjde.fsf@gmail.com \
    --to=theophilusx@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --subject='Re: [HELP} Capture Template' \


* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

Code repositories for project(s) associated with this inbox:


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).