From mboxrd@z Thu Jan 1 00:00:00 1970 From: Alexander Vorobiev Subject: Re: Capture with org-directory not working? Date: Tue, 29 Nov 2016 13:23:39 -0600 Message-ID: References: <87vaxr51t3.fsf@gmail.com> <87zin2ty3f.fsf@alphapapa.net> <87vaxqts75.fsf@alphapapa.net> <9E0BD070-F074-4524-8204-8CD840CDFE8C@gmail.com> <87fuotsc7b.fsf@alphapapa.net> Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=f403045dd99061baac05427588d9 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51805) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cBo0j-000481-DO for emacs-orgmode@gnu.org; Tue, 29 Nov 2016 14:24:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cBo0i-0007Ua-8u for emacs-orgmode@gnu.org; Tue, 29 Nov 2016 14:24:13 -0500 Received: from mail-ua0-x231.google.com ([2607:f8b0:400c:c08::231]:33767) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cBo0i-0007Tb-0P for emacs-orgmode@gnu.org; Tue, 29 Nov 2016 14:24:12 -0500 Received: by mail-ua0-x231.google.com with SMTP id 20so189165891uak.0 for ; Tue, 29 Nov 2016 11:24:11 -0800 (PST) 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: Rainer M Krug Cc: Adam Porter , emacs-orgmode --f403045dd99061baac05427588d9 Content-Type: text/plain; charset=UTF-8 I have recently started having this issue with my capture templates. In my case I want to ask the user (me) which file should be used to store the note, so I have a bunch of templates like this (setq org-capture-templates '(("o" "Project todo" entry (file+headline (av/choose-agenda-file) "Tasks") )) where av/choose-agenda-file uses completing-read to ask the user to choose a file from a list it constructs on the fly. This approach has worked for years and now it results in the "invalid file location" message. The backquote does not help because the function needs to be called at run time, not when the variable is defined. Thanks, Alex On Wed, Sep 21, 2016 at 7:49 AM, Rainer M Krug wrote: > Adam Porter writes: > > > Rainer Krug writes: > > > >> But It seems to abusing the basic idea of custom-set-variables as this > >> sounds as if it is used by the customise interface. > > > > What I mean is, you can use the customize interface to store your > > org-capture-templates. It's already set up for that. You can either > > edit it through the customize interface, or you can edit it directly in > > the init file and then evaluate the ~(custom-set-variables~ sexp > manually. > > > > OK - but I prefer to keep my configurations in my .emacs.el file to make > it reproducible. > > > Thanks, > > Rainer > > > > > -- > Rainer M. Krug > email: Rainerkrugsde > PGP: 0x0F52F982 > --f403045dd99061baac05427588d9 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
I have recently started having this issue with my capture = templates. In my case I want to ask the user (me) which file should be used= to store the note, so I have a bunch of templates like this

<= /div>
(setq org-capture-templates
=C2=A0 =C2=A0 =C2=A0 =C2=A0= =C2=A0 =C2=A0 =C2=A0'(("o" "Project todo" entry (f= ile+headline (av/choose-agenda-file) "Tasks") ))
=
where av/choose-agenda-file uses completing-read to ask the = user to choose a file from a list it constructs on the fly. This approach h= as worked for years and now it results in the "invalid file location&q= uot; message. The backquote does not help because the function needs to be = called at run time, not when the variable is defined.

<= div>Thanks,
Alex

On Wed, Sep 21, 2016 at 7:49 AM, Rainer M Krug <Rainer@= krugs.de> wrote:
Adam Porter <adam@alphapapa.net> writes:

> Rainer Krug <r.m.krug@gmail.c= om> writes:
>
>> But It seems to abusing the basic idea of custom-set-variables as = this
>> sounds as if it is used by the customise interface.
>
> What I mean is, you can use the customize interface to store your
> org-capture-templates.=C2=A0 It's already set up for that.=C2=A0 Y= ou can either
> edit it through the customize interface, or you can edit it directly i= n
> the init file and then evaluate the ~(custom-set-variables~ sexp manua= lly.
>

OK - but I prefer to keep my configurations in my .emacs.el fil= e to make
it reproducible.


Thanks,

Rainer

>

--
Rainer M. Krug
email: Rainer<at>krugs<dot>de
PGP: 0x0F52F982

--f403045dd99061baac05427588d9--