emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Moritz Ulrich <moritz@tarn-vedra.de>
To: Emacs-orgmode <Emacs-orgmode@gnu.org>
Subject: Bug: Capture with %i replaces placeholders in copied region
Date: Fri, 24 Aug 2012 15:19:16 +0200	[thread overview]
Message-ID: <m2ehmwh1gr.fsf@tarn-vedra.de> (raw)


When I capture a new item to org-mode where the template includes %i
(capture active region), other placeholders in the region are replaced
(evaluated).

For example, capturing with the template

--8<---------------cut here---------------start------------->8---
  ("t" "Todo" entry
   (file+headline "todo.org" "Tasks")
   "* TODO %?\n  %i\n %a\n")
--8<---------------cut here---------------end--------------->8---

while the following region is active:

--8<---------------cut here---------------start------------->8---
;; ("w" "URL"     entry (file+headline "notes.org"   "URLs")
;;    "* %^{Title}\n\n  Source: %u, %c\n\n  %i")
--8<---------------cut here---------------end--------------->8---

it will asks for 'Title' because the captured region contains the
placeholder %^{Title}.


This feels wrong, and is most likely a bug.

--
Moritz Ulrich

             reply	other threads:[~2012-08-24 13:19 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-08-24 13:19 Moritz Ulrich [this message]
2012-08-24 13:45 ` Bug: Capture with %i replaces placeholders in copied region Bastien

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=m2ehmwh1gr.fsf@tarn-vedra.de \
    --to=moritz@tarn-vedra.de \
    --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).