Hello,
Xi Shen <davidshen84@gmail.com> 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