From mboxrd@z Thu Jan 1 00:00:00 1970 From: Sebastian Fischmeister Subject: Custom escapes & the evaluation order in fill-template Date: Sat, 23 Jun 2012 20:57:11 -0400 Message-ID: <20120624005711.GA31416@muh> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([208.118.235.92]:36063) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sib9J-0006pA-5d for emacs-orgmode@gnu.org; Sat, 23 Jun 2012 20:57:58 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Sib9H-0008AA-FW for emacs-orgmode@gnu.org; Sat, 23 Jun 2012 20:57:56 -0400 Received: from mail-ob0-f169.google.com ([209.85.214.169]:33470) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Sib9H-0008A2-8N for emacs-orgmode@gnu.org; Sat, 23 Jun 2012 20:57:55 -0400 Received: by obhx4 with SMTP id x4so5481598obh.0 for ; Sat, 23 Jun 2012 17:57:53 -0700 (PDT) Content-Disposition: inline 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@gnu.org Hello, Will it break org-mode when changing the order in which templates are filled in org-capture-fill-template? I want to create custom escapes in as part of the template: ------------------------------ %(progn (plist-put org-store-link-plist :foo (read-from-minibuffer "foo: ")) "") ** %? doing %:foo %(plist-get org-store-link-plist :foo) ** following up on %:foo ------------------------------- Currently %:foo doesn't work, because fill-template replaces properties before it evaluates expressions. Btw. it would be great to support this through a special syntax like #^{prompt|variable} which then enables :variable Sebastian