Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Simao
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

Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Simao
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

Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Nicolas Goaziou
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.

Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Simao
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,

Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Nicolas Goaziou
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

Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Simao
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?

Re: [O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-11 Thread Nicolas Goaziou
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:

[O] org-capture exists with "Capture abort: (wrong type argument...)"

2017-01-10 Thread Simao
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