From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: org capture properties from a list of strings? Date: Sun, 23 Apr 2017 17:41:26 +0300 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c11aca842cca4054dd67c77 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:37460) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2Ihe-0000m5-L8 for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 10:41:31 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2Ihd-0005dX-Jw for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 10:41:30 -0400 Received: from mail-it0-x230.google.com ([2607:f8b0:4001:c0b::230]:36920) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2Ihd-0005dR-EG for emacs-orgmode@gnu.org; Sun, 23 Apr 2017 10:41:29 -0400 Received: by mail-it0-x230.google.com with SMTP id x188so25790643itb.0 for ; Sun, 23 Apr 2017 07:41:27 -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" To: org mode --94eb2c11aca842cca4054dd67c77 Content-Type: text/plain; charset=UTF-8 Hi all so i currently have this in my capture templates :PROPERTIES: :Time: %^{minutes|-|10|15|30|60} :Rating: %^{rating?|-|1|2|3|4|5} :END: i was wondering if instead of manually putting the values in each line i can perhaps supply a list like this (defun returns-a-list-of-strings2 () (list "1" "2" "3" "4" "5" )) is that somehow possible where i could have something like this :Rating: %^{rating?|(returns-a-list-of-strings2)} is that possible at all? best Z --94eb2c11aca842cca4054dd67c77 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi all

so i currently have this in= my capture templates


:PROPERTIES:<= /div>
:Time: %^{minutes|-|10|15|30|60}
:Rating: %^{rating?|-|= 1|2|3|4|5}
:END:

i was wondering if inst= ead of manually putting the values in each line i can perhaps supply a list= like this


(defun returns-a-list-of= -strings2
()
(list =C2=A0"1" "2" &q= uot;3" "4" "5" ))

is that= somehow possible where i could have something like this


:Rating: %^{rating?|(returns-a-list-of-strings2)}

is that possible at all?

best

Z
--94eb2c11aca842cca4054dd67c77--