From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simao Subject: Re: org-capture exists with "Capture abort: (wrong type argument...)" Date: Wed, 11 Jan 2017 12:03:59 +0100 Message-ID: <1484132639.3858670.844150624.40282A96@webmail.messagingengine.com> References: <1484058449.3606814.843112001.3FF9BB31@webmail.messagingengine.com> <87eg0aug5d.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42340) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRGhH-000643-MU for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 06:04:09 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRGhE-0001Bx-IK for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 06:04:03 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:37144) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRGhE-0001Bo-98 for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 06:04:00 -0500 In-Reply-To: <87eg0aug5d.fsf@nicolasgoaziou.fr> 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 Hi, Thanks for your reply. I only changed the location of the journal file. org-mode actually creates the file and the right heading: * 2017 ** 2017-01 January *** 2017-01-11 Wednesday But then this error is thrown. What do you mean the file is not in org mode? How do I add it to org mode? Thanks On Wed, Jan 11, 2017, at 09:58, Nicolas Goaziou wrote: > Hello, > > Simao writes: > > > I am trying to run `org-capture` to capture a journal entry but > > `org-capture` always aborts with the following trace: > > > > Debugger entered--Lisp error: (error "Capture abort: > > (wrong-type-argument stringp nil)") > > signal(error ("Capture abort: (wrong-type-argument stringp nil)")) > > error("Capture abort: %s" (wrong-type-argument stringp nil)) > > org-capture(nil) > > funcall-interactively(org-capture nil) > > call-interactively(org-capture nil nil) > > command-execute(org-capture) > > > > Is there a problem with my settings? I am using the template suggested > > in the manual. > > You are not using the template suggested in the manual. Your capture > location is "~/Sync/journal.org.txt", which is not in Org mode. You > cannot create a tree there if it is not the case. > > I improved the error message returned by Org capture under those > circumstances. Thank you. > > Regards, > > -- > Nicolas Goaziou