From mboxrd@z Thu Jan 1 00:00:00 1970 From: Florian Lindner Subject: Re: Capture template stopped working: nil Date: Sun, 25 Jun 2017 21:23:32 +0200 Message-ID: <4bb6a523-1252-e923-db46-b1077fe6238d@xgm.de> References: <7d3e8e78-24ff-f8ba-8931-38014f109b66@xgm.de> <87d19r51fy.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47211) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPD8D-0007gi-CQ for emacs-orgmode@gnu.org; Sun, 25 Jun 2017 15:23:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dPD8A-0004BF-8f for emacs-orgmode@gnu.org; Sun, 25 Jun 2017 15:23:37 -0400 Received: from venus.centershock.net ([188.68.38.242]:37724) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dPD8A-0004B3-1h for emacs-orgmode@gnu.org; Sun, 25 Jun 2017 15:23:34 -0400 In-Reply-To: <87d19r51fy.fsf@nicolasgoaziou.fr> Content-Language: en-US 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: Nicolas Goaziou Cc: emacs-orgmode@gnu.org Am 25.06.2017 um 21:09 schrieb Nicolas Goaziou: > Hello, >=20 > Florian Lindner writes: >=20 >=20 >> since recently, one of my capture templates stopped working. Message i= s: >> >> Template key: >> org-capture: Capture template =E2=80=98j=E2=80=99: nil >> >> and: >> >> - %? >> >> is added to journal.org. I have also tried some other template text li= ke "foo" (without any keys), but the message is the same. >> >> value of org-capture-templates is: >=20 >> ("j" "Journal" item >> (file+datetree >> (concat org-directory "/journal.org")) >=20 > It should be (lambda () (concat org-directory "/journal.org")). >=20 > See ORG-NEWS. Hey, ok, found it there. However, it seems that I don't need it anyways, since "When an absolute p= ath is not specified for a target, it is taken as relative to =E2=80=98or= g-directory=E2=80=99." So, I changed it to: ("j" "Journal" item (file+datetree "journal.org") "%?\n%i" :kill-buffer t) which still gives the same error. Sorry... what is still wrong there? Best, Florian