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 15:14:29 +0100 Message-ID: <1484144069.854060.844319184.6959C20B@webmail.messagingengine.com> References: <1484058449.3606814.843112001.3FF9BB31@webmail.messagingengine.com> <87eg0aug5d.fsf@nicolasgoaziou.fr> <1484132639.3858670.844150624.40282A96@webmail.messagingengine.com> <87pojtua1r.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]:36773) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRJff-000899-QR for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 09:14:36 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRJfb-0007hL-2S for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 09:14:35 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:58546) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRJfa-0007hB-Rv for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 09:14:31 -0500 In-Reply-To: <87pojtua1r.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 Ah that's what you meant. Yeah but I am activating org-mode for org.txt files: (add-to-list 'auto-mode-alist '("\\.org$" . org-mode)) (add-to-list 'auto-mode-alist '("\\.org.txt$" . org-mode)) And if I open the journal file it indeed has org-mode active. Thanks On Wed, Jan 11, 2017, at 12:10, Nicolas Goaziou wrote: > Simao writes: > > > I only changed the location of the journal file. > > Worse, you changed the extension, which means the major mode used after > opening the file is different. > > > org-mode actually creates the file and the right heading: > > > > * 2017 > > ** 2017-01 January > > *** 2017-01-11 Wednesday > > > > But then this error is thrown. > > This error means `org-todo-line-regexp' is not defined, because the > major mode in this file is not `org-mode' > > > What do you mean the file is not in org mode? How do I add it to org > > mode? > > See (info "(org) Activation") > > You can use Org as a major-mode file-wise or for every file with ".txt" > extension. > > Regards,