GNU bug report logs - #78298
[PATCH] Scroll with mouse wheel in calendar

Previous Next

Package: emacs;

Reported by: Manuel Giraud <manuel <at> ledu-giraud.fr>

Date: Wed, 7 May 2025 08:49:02 UTC

Severity: normal

Tags: patch

Full log


View this message in rfc822 format

From: Manuel Giraud <manuel <at> ledu-giraud.fr>
To: Michael Heerdegen <michael_heerdegen <at> web.de>
Cc: Eli Zaretskii <eliz <at> gnu.org>, 78298 <at> debbugs.gnu.org, Juri Linkov <juri <at> linkov.net>
Subject: bug#78298: [PATCH] Scroll with mouse wheel in calendar
Date: Sat, 10 May 2025 20:38:39 +0200
Michael Heerdegen <michael_heerdegen <at> web.de> writes:

> Manuel Giraud <manuel <at> ledu-giraud.fr> writes:
>
>> I've checked: calendar-for/backward-year place the cursor on current the
>> day of month while the functions I introduce place it on the first day
>> of the month.
>>
>> For such a tiny difference, I think I should remove
>> calendar-scroll-right-year (and left) from this patch.  WDYT?
>
> I would prefer to keep the behavior consistent.
>
> Or was it not even consistent before your patch?  I see that <next> is
> bound to `calendar-scroll-left-three-months' and C-x ] to
> `calendar-forward-year'.  Your patch didn't touch these.  Did these
> already behave differently?

Yes, they behave differently.  AFAIU, for scrolling: while the date
under the cursor is visible, the cursor is placed there after the
scroll.  When the date is not visible anymore, the cursor is placed on
the first day of the month.

For forward/backward movements: it always place the cursor exactly one
month/year before or after.
-- 
Manuel Giraud




This bug report was last modified 9 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.