emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] org-capture-expand-file: Invalid file location: nil


From: Nicolas Goaziou
Subject: Re: [O] org-capture-expand-file: Invalid file location: nil
Date: Sat, 04 Nov 2017 22:23:16 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.3 (gnu/linux)

Hello,

Xi Shen <address@hidden> writes:

> When I do C-c c, I got an error:

I don't see any "c" template in your `org-capture-templates'.

> org-capture-expand-file: Invalid file location: nil
>
> But (org-capture-expand-file "") returns the expected value. And the file
> does exist. But (org-capture-expand-file nil) raise an error.

This seems expected according to the docstring.

> So I guess the function was given an erroneous value.
>
> My relevant settings are:
>
> (org-capture-templates
>    (quote
>     (("t" "Task" entry
>       (file+headline nil "Tasks")
>       "* TODO %? %^g")
>      ("q" "Quick note" entry
>       (file+datetree nil)
>       "* [%<%H:%M>] %?"))))

Have you tried to specify an actual filename, or the empty string,
instead of using nil? Both `file+headline' and `file+datetree' expect
some file to operate on.

Regards,

-- 
Nicolas Goaziou



reply via email to

[Prev in Thread] Current Thread [Next in Thread]