Initial call to calendar-generate-window errors out when calendar attempts to mark holidays, as habit-stats attempts to create a calendar centered 1 month previous to current, but calendar tries to mark holidays based on current month and thus gets error attempting to move-column to a negative number. Error looks like "Wrong type argument: wholenump, -19"
I suggest let-binding calendar-mark-holidays-flag and calendar-mark-diary-entries-flag to nil around initial call to calendar-generate-window in org-habit-stats-make-calendar-buffer and org-habit-stats-refresh-calendar-buffer, that seems to work for me.
This is on emacs 30.0.50 built from source 2024-01-22.
Initial call to
calendar-generate-windowerrors out when calendar attempts to mark holidays, as habit-stats attempts to create a calendar centered 1 month previous to current, but calendar tries to mark holidays based on current month and thus gets error attempting to move-column to a negative number. Error looks like "Wrong type argument: wholenump, -19"I suggest let-binding
calendar-mark-holidays-flagandcalendar-mark-diary-entries-flagto nil around initial call tocalendar-generate-windowinorg-habit-stats-make-calendar-bufferandorg-habit-stats-refresh-calendar-buffer, that seems to work for me.This is on emacs 30.0.50 built from source 2024-01-22.