From mboxrd@z Thu Jan 1 00:00:00 1970 From: Moritz Ulrich Subject: Bug: Capture with %i replaces placeholders in copied region Date: Fri, 24 Aug 2012 15:19:16 +0200 Message-ID: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([208.118.235.92]:32923) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4tnN-00054g-Lz for Emacs-orgmode@gnu.org; Fri, 24 Aug 2012 09:19:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T4tnI-00045s-FC for Emacs-orgmode@gnu.org; Fri, 24 Aug 2012 09:19:29 -0400 Received: from mail-bk0-f41.google.com ([209.85.214.41]:35593) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T4tnI-00045O-8S for Emacs-orgmode@gnu.org; Fri, 24 Aug 2012 09:19:24 -0400 Received: by bkcjc3 with SMTP id jc3so613594bkc.0 for ; Fri, 24 Aug 2012 06:19:22 -0700 (PDT) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Emacs-orgmode 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