all messages for Emacs-related lists mirrored at yhetil.org
 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
%^{Description}.

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

--
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 ` [HELP} Capture Template 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:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* 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 \
    /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 external index

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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.