kiwanami / emacs-calfw

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

Fix: calfw-org: Ensure that string-match does not get nil input #155

Open vedang opened 1 year ago

vedang commented 1 year ago

With the following customization:

    (setq cfw:org-agenda-schedule-args
          '(:deadline :scheduled :timestamp))

M-x cfw:open-org-calendar fails to render. This happens because the functions cfw:org-summary-format and cfw:org-get-timerange do not guard against text properties being nil when calling string-match.

This commit adds the guard, which leads to the calendar rendering correctly.

saviola777 commented 1 year ago

Thank you, this PR fixed an issue that recently started happening where I'd get an error when trying to open the calfw calendar. 👍 I do not have the customization you mentioned (the variable is nil), so I'm not sure what exactly triggered it.