From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rainer M Krug Subject: Re: Capture with org-directory not working? Date: Tue, 20 Sep 2016 09:25:35 +0200 Message-ID: References: <87vaxr51t3.fsf@gmail.com> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45910) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmFRA-00077c-7n for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 03:25:53 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1bmFR5-0008H8-Qc for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 03:25:52 -0400 Received: from mout.kundenserver.de ([212.227.126.131]:61968) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1bmFR5-0008GX-Fh for emacs-orgmode@gnu.org; Tue, 20 Sep 2016 03:25:47 -0400 In-Reply-To: <87vaxr51t3.fsf@gmail.com> (Nick Dokos's message of "Mon, 19 Sep 2016 11:47:36 -0400") 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: Nick Dokos Cc: emacs-orgmode@gnu.org --=-=-= Content-Type: text/plain Content-Transfer-Encoding: quoted-printable Nick Dokos writes: > Rainer M Krug writes: > >> Hi >> >> I have the following capture template: >> >> ,---- >> | ("T" "TODO to be logged in notes.org"=20=20=20=20 >> | entry (file+headline (concat org-directory "/notes.org") "Tasks")= =20=20=20=20=20=20=20=20 >> | ;; entry (file+headline "~/org/notes.org" "Tasks")=20=20=20=20=20= =20=20=20 >> | "* TODO [#D] \n%i \n:PROPERTIES: \n:END: \n%? \n%a") >> `---- >> >> As it is now, it is not working, but when I use the secont=3Dd entry lin= e, >> it is working. >> > > Try (!!note the backquote at the beginning and the comma before the conc= at form!!): > > (setq org-capture-templates > `( > ... > ("T" "TODO to be logged in notes.org"=20=20=20=20 > entry (file+headline ,(concat org-directory "/notes.org") "Tasks")= =20=20=20=20=20=20=20=20 > "* TODO [#D] \n%i \n:PROPERTIES: \n:END: \n%? \n%a") > ...)) > Thanks! the problem was the missing comma, as I had the backquote already there. This must have changed some time ago, as I used these templates before. This is working now. But now I realized that my other in-file capture templates are giving the same message. Here is one of my in-file capture templates: ,---- | (setq org-capture-templates | `( | ;; ;;;;;;;;;;;;;;;;:: | ;; In File Logging :: | ;; ;;;;;;;;;;;;;;;;:: | ("p" "Problem to be logged in buffer"=20=20=20=20 | entry (file+headline (buffer-file-name) "QUESTIONS")=20=20 | ... | )) `---- I assume it also has to do with the evaluation, but putting a comma in front of (buffer-file-name) does not change anything.=20 Thanks, Rainer > > See > > (info "(elisp) Backquote") =2D-=20 Rainer M. Krug email: Rainerkrugsde PGP: 0x0F52F982 --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEcBAEBCAAGBQJX4OR2AAoJENvXNx4PUvmCuf8H/3ErvsTbyLb25Q79fGM3wyo2 xPSDLUHvFn10sXBTjN280UB0QD5snH0CGFZVstIiV65PjwiKlpJkZZMFWpHiM7ut F6UvjstM+k+araRtxIn5Uu5nDYZA3noyDicUDTr1PtaBmPz3sWEtaakhQGWSlnRV epOIovnGY4x0OYLrinDFTDl095fUywAFosGNFJHx/WXAEWFr69oF+G7C9Zp70sPf PKCISrBJ6eAOIWLr8PU59FSe1GBFF/Fshr6qMMz3oHwiUYB2IvJgBXQpmge8A4R6 dNO+zFZ7OVWaHeL5dD0pPlNi1DVQCPsTBf9gir4NF7vg5JzFWTZTRr0PMUM+UzI= =fYxP -----END PGP SIGNATURE----- --=-=-=--