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 #153

Closed vedang closed 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.

vedang commented 1 year ago

Closing this PR and re-creating it from a non-master branch, so that I can use my own master branch version of emacs-calfw while keeping separate PRs