[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] org-capture exists with "Capture abort: (wrong type argument...)
Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"
Wed, 11 Jan 2017 17:40:11 +0100
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")
(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.
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 <address@hidden> 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,