From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bastien Subject: Re: How to set a property defaults in a capture template. Date: Wed, 21 Dec 2011 00:05:14 +0100 Message-ID: <87pqfihmj9.fsf@gnu.org> References: <912E1A11-FBCA-4D6C-9DC1-401FD0DE0780@coateconnection.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:52236) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rd8jK-00057b-3R for emacs-orgmode@gnu.org; Tue, 20 Dec 2011 18:04:21 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rd8jG-0008Fe-9k for emacs-orgmode@gnu.org; Tue, 20 Dec 2011 18:04:18 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:63101) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rd8jF-0008FZ-V5 for emacs-orgmode@gnu.org; Tue, 20 Dec 2011 18:04:14 -0500 Received: by werf1 with SMTP id f1so3054694wer.0 for ; Tue, 20 Dec 2011 15:04:13 -0800 (PST) In-Reply-To: <912E1A11-FBCA-4D6C-9DC1-401FD0DE0780@coateconnection.com> (dlc@coateconnection.com's message of "Tue, 13 Dec 2011 15:56:53 -0600") 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: dlc Cc: Org Mode dlc writes: > I have attempted to use the expansion %(SEXP) along with the property > api as in the following but it does not work because Emacs-Lisp > doesn't support nested strings (right?) I am just learning > emacs-lisp, so I'm am sure my lack of knowledge is at work here. > > (setq org-capture-templates > '( > ("t" "Test adding property" entry (file "~/people.org") > "* Test Entry %(org-entry-put (point) "STYLE" "habit")" > ) > ( another template > ) > )) Shooting in the dark: if this is just a matter of "nested strings", you can try to simply escape the double-quotes in your template. "* Test Entry %(org-entry-put (point) \"STYLE\" \"habit\")" (Caveat: I didn't check the whole syntax of your setq above... hope that helps anyway.) -- Bastien