From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org capture properties from a list of strings? Date: Tue, 25 Apr 2017 10:00:05 +0200 Message-ID: <87y3uozzlm.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36073) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2vOa-0005Cf-3Z for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 04:00:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2vOR-0002zl-8K for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 04:00:24 -0400 Received: from relay7-d.mail.gandi.net ([2001:4b98:c:538::200]:35458) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1d2vOR-0002zR-1p for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 04:00:15 -0400 Received: from relay3-d.mail.gandi.net (relay3-d.mail.gandi.net [217.70.183.195]) by relay7-d.mail.gandi.net (Postfix) with ESMTPS id 23A131100 for ; Tue, 25 Apr 2017 10:00:09 +0200 (CEST) In-Reply-To: (Xebar Saram's message of "Tue, 25 Apr 2017 10:45:20 +0300") 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" To: Xebar Saram Cc: org mode Hello, Xebar Saram writes: > kinda stuck with this and cant find any documentation. would also be glad > to know its not possible so i can perhaps explore another method :) > > im basically wondering if instead of manually imputing string separated > with | in the : %^{} capture template i can provide a lisp way to send a > pre defined list of strings ("a" "b" "c") etc.. anyone has any clue? Since it is pre-defined, you can do the following during capture definition (format "* Headline :PROPERTIES: :Time: %%^{minutes|-|%s} :Rating: %%^{rating?|-|%s} :END:" (mapconcat #'number-to-string '(10 15 30 60) "|") (mapconcat #'number-to-string '(1 2 3 4 5) "|")) Can't you? Regards, -- Nicolas Goaziou