Subject: bug#78298: [PATCH] Scroll with mouse wheel in calendar

From: Michael Heerdegen <[email-masked]>
Date: Thu, 15 May 2025 14:05:44 +0200

Juri Linkov <[email-masked]> writes:

> I don't have a strong opinion too.  So let's start with the minimal
> patch, then will see if anyone has more suggestions.  Now pushed your
> patch.

No... there is a problem with that solution, sorry:

M-x calendar RET
select the other window again (showing *scratch* if you are in -Q)
M-mouse-wheel over the calendar window

and you get

| Debugger entered--Lisp error: (void-variable displayed-month)
|   calendar-cursor-to-date()
|   calendar-cursor-to-nearest-date()
|   calendar-forward-month(12)
|   calendar-forward-year(1)
|   funcall-interactively(calendar-forward-year 1)
|   call-interactively(calendar-forward-year nil nil)
|   command-execute(calendar-forward-year)

Michael.