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 17:40:11 +0100 Message-ID: <1484152811.888999.844488336.6A4146D6@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> <1484144069.854060.844319184.6959C20B@webmail.messagingengine.com> <87eg09tzv9.fsf@nicolasgoaziou.fr> <1484147128.866454.844378744.1C7FF67B@webmail.messagingengine.com> 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]:50052) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cRLwd-0001xL-FS for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 11:40:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cRLwa-0002tn-6a for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 11:40:15 -0500 Received: from out1-smtp.messagingengine.com ([66.111.4.25]:47981) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1cRLwZ-0002tA-Vv for emacs-orgmode@gnu.org; Wed, 11 Jan 2017 11:40:12 -0500 In-Reply-To: <1484147128.866454.844378744.1C7FF67B@webmail.messagingengine.com> 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 Ok I found out the problem. I was using the following hook: (defun sm-mozilla-text-hook () (when (string-match (expand-file-name "~/.mozilla/firefox") (buffer-file-name)) (longlines-mode 1))) (add-hook 'text-mode-hook 'sm-mozilla-text-hook) But for the capture buffer, buffer-file-name is nil so this fails. Using `or` there fixes it. Anyway I am just surprised that this worked for so long, I have had this hook for years and use these kind of buffers all the time. I guess I should be using. Thank you for looking into it. Simao On Wed, Jan 11, 2017, at 16:05, Simao wrote: > I was using the version bundled with emacs 25. I upgraded to org 9.0.3 > and I still get the same problem. Is there a way to get a better trace > or something? > > On Wed, Jan 11, 2017, at 15:50, Nicolas Goaziou wrote: > > Simao writes: > > > > > 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. > > > > Then, you could try upgrading Org to 9.0. > > > > Regards,