From mboxrd@z Thu Jan 1 00:00:00 1970 From: Xebar Saram Subject: Re: org capture properties from a list of strings? Date: Tue, 25 Apr 2017 10:45:20 +0300 Message-ID: References: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=94eb2c1445aae5a2eb054df8e78f Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:56868) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1d2vA5-000586-5b for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 03:45:26 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1d2vA4-0004wo-8U for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 03:45:25 -0400 Received: from mail-pf0-x22b.google.com ([2607:f8b0:400e:c00::22b]:36829) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1d2vA4-0004uy-2Z for emacs-orgmode@gnu.org; Tue, 25 Apr 2017 03:45:24 -0400 Received: by mail-pf0-x22b.google.com with SMTP id 194so23182028pfv.3 for ; Tue, 25 Apr 2017 00:45:22 -0700 (PDT) In-Reply-To: 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 --94eb2c1445aae5a2eb054df8e78f Content-Type: text/plain; charset=UTF-8 Hi again all 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? best Z On Sun, Apr 23, 2017 at 5:41 PM, Xebar Saram wrote: > 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 > --94eb2c1445aae5a2eb054df8e78f Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
Hi again all

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 basica= lly wondering if instead of manually imputing string separated with | in th= e =C2=A0: %^{} capture template i can prov= ide a lisp way to send a pre defined list of strings ("a" "b= " "c") etc.. anyone has any clue?

best

Z

On Sun, Apr 23, 2017 at 5:41 PM, = Xebar Saram <zeltakc@gmail.com> wrote:
Hi all

so i currentl= y have this in my capture templates


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

i was won= dering if instead of manually putting the values in each line i can perhaps= supply a list like this


(defun ret= urns-a-list-of-strings2
()
(list =C2=A0"1" &q= uot;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

--94eb2c1445aae5a2eb054df8e78f--