Skip to content

Error generating habit stats calendar window when user has enabled 'calendar-mark-holidays-flag' #6

Description

@wombatzus

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions