kiwanami / emacs-calfw

A calendar framework for Emacs
1.16k stars 100 forks source link

Cannot run cfw:open-org-calendar: (wrong-type-argument stringp nil) #161

Open drivet opened 3 months ago

drivet commented 3 months ago

Hello,

When I try to run cfw:open-org-calendar I get a (wrong-type-argument stringp nil) error.

I won't paste the whole stack trace here, but I did trace the problem back tocfw:org-summary-format and cfw:org-get-timerange, in particular, this let* clause in cfw:org-summary-format:

(extra (cfw:org-tp item 'extra)))

And this one in cfw:org-get-timerange:

(extra (cfw:org-tp text 'extra)))

The problem is that the "extra" variable, in both cases, ends up being nil and is used as part of a string-match call afterwards. The string-match call is expecting a string, not a nil, and so it blows up.

I don't know what the "extra" property is or why it's returning nil or whether it's always done that...if you force the value or extra to be the empty string instead of nil then things seem to load properly, though.

drivet commented 3 months ago

Actually...I see there's a PR for exactly this issue....it just hasn't been merged