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

Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.

Package: emacs; Reported by: Manuel Giraud <manuel@HIDDEN>; Keywords: patch; Done: Juri Linkov <juri@HIDDEN>; Maintainer for emacs is bug-gnu-emacs@HIDDEN.
bug marked as fixed in version 31.0.50, send any further explanations to 78298 <at> debbugs.gnu.org and Manuel Giraud <manuel@HIDDEN> Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 14 May 2025 18:08:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 14:08:57 2025
Received: from localhost ([127.0.0.1]:45130 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFGXJ-0002fw-B9
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 14:08:57 -0400
Received: from relay9-d.mail.gandi.net ([2001:4b98:dc4:8::229]:35279)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>)
 id 1uFGXH-0002fa-GF; Wed, 14 May 2025 14:08:56 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id CA7F6442BA;
 Wed, 14 May 2025 18:08:46 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87r00rozd3.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
 <87r00x6ooy.fsf@HIDDEN> <87h61s71lc.fsf@HIDDEN>
 <87bjrxg0zw.fsf@HIDDEN> <875xi3s95t.fsf@HIDDEN>
 <87sel7yxa1.fsf@HIDDEN> <87wmaj6rht.fsf@HIDDEN>
 <87r00rozd3.fsf@HIDDEN>
Date: Wed, 14 May 2025 21:07:50 +0300
Message-ID: <878qmzysjt.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftdejieejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohephedprhgtphhtthhopegtohhnthhrohhlseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepjeekvdelkeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopegvlhhiiiesghhnuhdrohhrghdprhgtphhtthhopehmihgthhgrvghlpghhvggvrhguvghgvghnseifvggsrdguvgdprhgtphhtthhopehmrghnuhgvlheslhgvughuqdhgihhrrghuugdrfhhr
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

close 78298 31.0.50
thanks

>>> Hopefully it would be ok for Michael as well to use less code
>>> by reusing calendar-[for|back]ward-year that makes mouse wheel
>>> year scrolling consistent with 'C-x [' and 'C-x ]'.
>>
>> I actually don't have such a strong opinion about this.  Do it if you
>> came to the conclusion that it's the right thing to do.
>
> Ok.  I don't have a strong opinion myself so here is an updated version
> of this patch.

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.
Thanks for it.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 14 May 2025 17:50:56 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 13:50:56 2025
Received: from localhost ([127.0.0.1]:44996 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFGFr-0001k2-LE
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 13:50:56 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:13365)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uFGFo-0001js-Mo
 for 78298 <at> debbugs.gnu.org; Wed, 14 May 2025 13:50:54 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=422wrlw3
 kuZPHs87kjMszwmDYNwhE8RiIjb1XyRyJ3Y=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=DzZ3QVut2/3kesEArN3sSRvuskxNL4
 N2bMJZbgzHNvXpS+t7iRzDstFdSsrDAIkbDK4K/WSzqaa2H/T1g2pNCw==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=422wrlw3kuZPHs87
 kjMszwmDYNwhE8RiIjb1XyRyJ3Y=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=n18Z5DxBGh+7TznGtQ37UWSuu56CTJC0GyKff+
 Bgu0ohP/QHMO5hHhU71XFKnSWALa28Udd+oHZ2oDumug7ZaDlHmzLC/8m+DvDYMv0zpxL+
 KlrjrF2DTsyH/mXLUVeiuMiAbSd1yEHwVR/RkVnk0dMoqM8oZMBdQrILnrSnEUhdH+HZjU
 X4vp9t+u3SasFIym7fDvqzDlxTe9yxmtYS5XBLedytWSPi6tzMc1kMhY9dDF8EjZp3kSbl
 7r4kPn3iuaxQdDp4+A5dreYBPBaCB44IbbbAGDXLIHad9F5AymLFJ2hjUF9ocTR+nhTbAQ
 lRcL+c6e74AjKCAZdZEzXb8g==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 1eaf64f5
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Wed, 14 May 2025 19:50:50 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87wmaj6rht.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
 <87r00x6ooy.fsf@HIDDEN> <87h61s71lc.fsf@HIDDEN>
 <87bjrxg0zw.fsf@HIDDEN> <875xi3s95t.fsf@HIDDEN>
 <87sel7yxa1.fsf@HIDDEN> <87wmaj6rht.fsf@HIDDEN>
Date: Wed, 14 May 2025 19:50:48 +0200
Message-ID: <87r00rozd3.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org,
 Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Juri Linkov <juri@HIDDEN> writes:
>
>> Hopefully it would be ok for Michael as well to use less code
>> by reusing calendar-[for|back]ward-year that makes mouse wheel
>> year scrolling consistent with 'C-x [' and 'C-x ]'.
>
> I actually don't have such a strong opinion about this.  Do it if you
> came to the conclusion that it's the right thing to do.

Ok.  I don't have a strong opinion myself so here is an updated version
of this patch.

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Scroll-with-mouse-wheel-in-calendar-bug-78298.patch

From 36cb39ffd46a6d90d7b77a6fd4a8d474d75d2518 Mon Sep 17 00:00:00 2001
From: Manuel Giraud <manuel@HIDDEN>
Date: Thu, 8 May 2025 16:30:20 +0200
Subject: [PATCH] Scroll with mouse wheel in calendar (bug#78298)

* lisp/calendar/calendar.el (calendar-mode-map): Add scrolling
with mouse wheel.
* etc/NEWS: Announce the change.
---
 etc/NEWS                  | 6 ++++++
 lisp/calendar/calendar.el | 6 ++++++
 2 files changed, 12 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index d1b0189da0c..0ec11a88b98 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2040,6 +2040,7 @@ DISABLE-URI non-nil.
 When starting these debuggers (e.g., 'M-x pdb') while visiting a file,
 pressing 'M-n' in the command prompt suggests a command line including
 the file name, using the minibuffer's "future history".
+
 ** Calendar
 
 +++
@@ -2047,6 +2048,11 @@ the file name, using the minibuffer's "future history".
 This command recenters the month of the date at point.  By default, it
 is bound to 'C-l' in the calendar buffer.
 
+---
+*** Mouse wheel bindings for scrolling the calendar.
+You can now use the mouse wheel to scroll the calendar by 3 months.
+With the shift modifier, it scrolls by one month.  With the meta
+modifier, it scrolls by year.
 
 * New Modes and Packages in Emacs 31.1
 
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index b0f6a9152d5..c448955450e 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1587,12 +1587,18 @@ calendar-mode-map
       (define-key map (vector 'remap c) 'calendar-not-implemented))
     (define-key map "<"     'calendar-scroll-right)
     (define-key map "\C-x<" 'calendar-scroll-right)
+    (define-key map [S-wheel-up] 'calendar-scroll-right)
     (define-key map [prior] 'calendar-scroll-right-three-months)
     (define-key map "\ev"   'calendar-scroll-right-three-months)
+    (define-key map [wheel-up] 'calendar-scroll-right-three-months)
+    (define-key map [M-wheel-up] 'calendar-backward-year)
     (define-key map ">"     'calendar-scroll-left)
     (define-key map "\C-x>" 'calendar-scroll-left)
+    (define-key map [S-wheel-down] 'calendar-scroll-left)
     (define-key map [next]  'calendar-scroll-left-three-months)
     (define-key map "\C-v"  'calendar-scroll-left-three-months)
+    (define-key map [wheel-down] 'calendar-scroll-left-three-months)
+    (define-key map [M-wheel-down] 'calendar-forward-year)
     (define-key map "\C-l"  'calendar-recenter)
     (define-key map "\C-b"  'calendar-backward-day)
     (define-key map "\C-p"  'calendar-backward-week)
-- 
2.49.0


--=-=-=
Content-Type: text/plain

-- 
Manuel Giraud

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 14 May 2025 17:16:39 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 13:16:39 2025
Received: from localhost ([127.0.0.1]:44842 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFFih-0008Su-H8
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 13:16:39 -0400
Received: from mout.web.de ([212.227.15.14]:57967)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1uFFie-0008Sd-Dc
 for 78298 <at> debbugs.gnu.org; Wed, 14 May 2025 13:16:37 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1747242987; x=1747847787;
 i=michael_heerdegen@HIDDEN;
 bh=iHp0NY0mIxSWtgdTR6MBYCK8Uq+VvPppKrQmgPsAA5E=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=I85Gjwv4j/5avRxGKcH4pNbEUszu5aBavVLHJNhzd5EAmNOR88o0sGUlrsSms+Bb
 gzcZyGqk7wglrC7Wf+q7uhoNwPmfNmIex2gqG5Idds3U3jcG65H7IIuBYWdesCJCr
 hqs9wtmsqyi/5x4U+nj+8+MdEViqYyUHwPI5JWx4FipMd40INJuk4DmR4YKv1W0nF
 uriyMfL5zYvccCi9aIS3MIkHoaHA/w+JlDZU0+8U1hBJlBjsoyha4hmHQlkdPx+fX
 2oblwTx3YqiucDuenD58h4lsjvlZ4V0rqt6ytO9v1DzrUadwaKvG8BAzc1jPewjSX
 bEiPF5k1XMVpjVMewQ==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([88.66.201.164]) by smtp.web.de (mrweb006
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N0Zs0-1v99f51ljw-014qwf; Wed, 14
 May 2025 19:16:27 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87sel7yxa1.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
 <87r00x6ooy.fsf@HIDDEN> <87h61s71lc.fsf@HIDDEN>
 <87bjrxg0zw.fsf@HIDDEN> <875xi3s95t.fsf@HIDDEN>
 <87sel7yxa1.fsf@HIDDEN>
Date: Wed, 14 May 2025 19:18:06 +0200
Message-ID: <87wmaj6rht.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:uq0MocLocKYvs2eiCqKH79LkhAFBvelo8EMziWGaYsULRTLTC+O
 BCX6Mu2lusHrXXR/oteCLY1wJylVui2F8AwawBlUOHUDP5ub8xKqU1FdegAIW7B/hcQhhiG
 t5u4Ivetz0494YK2pBFTp/zoo6J/mmG7xYBGPaRBlYikxJY4nveEXOCoC7xNe9+3OmsrYg5
 2EMLYWdp74yRmLQg0hWXg==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:mS73aocl0sU=;/AwmoRKWfAzAC36GmuFMQbjMlep
 GHCQ5eelbuyc6Opi/DfcsvJrgiJbKUf/hCwSWYNDVIaqG6Mfeel/ssDNWHySAXncK1BNcOSZh
 8s9LdUBm4ReV2uWMwZ0AZO4yczSi8R8svXMhmY4fEMZ3FAielRGN4wE3RhAinJiqUVh8Ukwnx
 W674z8+Rj2b4EpTYu8d3/Z1YKbXgAjwAYgnLGwZKruzkyB2VcYfYFXxb0YFr8SGVkGJajrluN
 FbLCC025IrPFxp4jxJSQ1CDrFZnnlg28ssgvtotAJF+Xys9+2kJmdDFMsN1S2W7+tTcOWPE7H
 3vO5wEfDs4kEiyzegGgj0TeLrXSNxSZrPw8A3iCK+wZQobrLdFTQvHZQAZBvUMi6rCN5ADlvB
 y1kzbj+II3cGq58ECNapcGU+s/gezQqcTltubc3yMh938985c+7wc7MbOrob5q2RF5xgPcQDF
 6cZyHu+aaCKTfSacku0cRtWcSFsi/S9cUmvoqmHUIWSWp7A+8JMvb7eHWkeTI8x35+I8gTPiD
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uMxYBtq5WkpJd5d29HwsRikqqIt8
 G2AGuEDWCLdbyrV0GIZRc0SOlJMskRqgp3KEMylyy3YHDBE/ygsP9c1DNImWqt5kZmW8d4WUr
 vMWJxVCK18nEOYQszddg+ZP/PHzlOhvES3B4AFBZnfg7n69MmX8sUOGPsbJq297Ra4QPAzuVp
 vuP0Qsq+N+AL6z8my/NSXzaPp/0HgyWcPFTEFgnFX53H0Zy56vMviEFOXpu483z7f6SEmfTCO
 OZVp8lB3oy+464N/IjFNhER6DGUMCSa+dF4Yih6JlE9BzXcCpXiZC52s+BvgTt7p/4CTFyLpY
 i8F9swCH96S+Qa7j9s1SOzKMgbCGqNubTuolXJMpmrhUlgYnOTQ+rUsiFhfrt7PDLmb61iC3A
 GRw2w3M7Ho2+HpLlecxpyj0XeR9+qWoQPxpQq8ewpHNqTh7r2sHLrleosOJ8Z5MqJcveKcA3i
 cyHc3YlsRiQ3qkmPk46epJD/mwcSpwhlbXidcgOq4C61G2+xAXWR/i4Mn4flDvJ48U2mD/yx9
 QJF45tY0vpAgM=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org,
 Manuel Giraud <manuel@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Juri Linkov <juri@HIDDEN> writes:

> Hopefully it would be ok for Michael as well to use less code
> by reusing calendar-[for|back]ward-year that makes mouse wheel
> year scrolling consistent with 'C-x [' and 'C-x ]'.

I actually don't have such a strong opinion about this.  Do it if you
came to the conclusion that it's the right thing to do.

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 14 May 2025 16:27:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 12:27:50 2025
Received: from localhost ([127.0.0.1]:44643 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFExS-0002Un-ER
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 12:27:50 -0400
Received: from relay7-d.mail.gandi.net ([217.70.183.200]:54881)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1uFExP-0002US-93
 for 78298 <at> debbugs.gnu.org; Wed, 14 May 2025 12:27:47 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id E48E143932;
 Wed, 14 May 2025 16:27:39 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <875xi3s95t.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
 <87r00x6ooy.fsf@HIDDEN> <87h61s71lc.fsf@HIDDEN>
 <87bjrxg0zw.fsf@HIDDEN> <875xi3s95t.fsf@HIDDEN>
Date: Wed, 14 May 2025 19:25:42 +0300
Message-ID: <87sel7yxa1.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftdejgeejucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepgedprhgtphhtthhopeejkedvleekseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigvsgdruggvpdhrtghpthhtohepmhgrnhhuvghlsehlvgguuhdqghhirhgruhgurdhfrh
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> With placing the cursor on the first day of the month
>> the behavior makes sense.  But only for months, not years.
>>
>> When scrolling years the need is to put the cursor
>> exactly on the same day/month in another year.
>
> Yes that also makes sense.  Any other opinion on this matter?  To
> summarize the choices are:
>
>           1) More code (new commands) but make year scrolling consistent
>              with other scrolling (i.e. place the cursor on the first
>              day of the month when the date is not visible anymore
>              (note: this is always the case for year scroll))
>
>           2) Less code (reuse calendar-[for|back]ward-year) but year
>              scrolling is not consistent with other scrolling

Hopefully it would be ok for Michael as well to use less code
by reusing calendar-[for|back]ward-year that makes mouse wheel
year scrolling consistent with 'C-x [' and 'C-x ]'.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 14 May 2025 11:51:07 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 14 07:51:06 2025
Received: from localhost ([127.0.0.1]:40818 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uFAdc-0006ow-Ej
	for submit <at> debbugs.gnu.org; Wed, 14 May 2025 07:51:06 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:28749)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uFAdW-0006nn-Qd
 for 78298 <at> debbugs.gnu.org; Wed, 14 May 2025 07:51:01 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=RLguF1Or
 fi8jI1rNa+lVlbJeGAHM9th8gsnHMiVfgp8=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=tZt5uTl4zf2F9oIyMUB+s89bSGuN8U
 XTHlwKN0vIdTIB6eq3P5VM5+aOeL/oaXT3HAkTC0GLU4ynVY9q4xibDw==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=RLguF1Orfi8jI1rN
 a+lVlbJeGAHM9th8gsnHMiVfgp8=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=IctZ1i8vfEXWCG7f2paRhx8FJX5FCYImnl2PTe
 H3AYmmjNgcycH35gu1tPcC90NC5bPsvkDu+W7cThmTNIXDBkggN9lX1UfrwPJ/NXap7Flp
 qQie6WoR8UilGAB60OMszP5vweKsc4p4YDYFWDojVjOJINe9etRZcdCi4y0UtJWlCa+A7q
 ygfnt8p72sSo6KAiIp1Qvl8uVO6RQ66Y7vexEOEzRRqayWLbr8RSQnkJCFO3YPOP6WdtxJ
 vmv/UEZThp7NXjVkB5uWznOrjCwE8OZFmK16eFs3IkwpWWgc6EoNhkuf+oVuY6Qb3yJoBc
 aeK7DihtMj7OSxzHxYVLRfQA==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id fc39512f
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Wed, 14 May 2025 13:50:56 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87bjrxg0zw.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
 <87r00x6ooy.fsf@HIDDEN> <87h61s71lc.fsf@HIDDEN>
 <87bjrxg0zw.fsf@HIDDEN>
Date: Wed, 14 May 2025 13:50:54 +0200
Message-ID: <875xi3s95t.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78298
Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> writes:

>>> 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.
>
> With placing the cursor on the first day of the month
> the behavior makes sense.  But only for months, not years.
>
> When scrolling years the need is to put the cursor
> exactly on the same day/month in another year.

Yes that also makes sense.  Any other opinion on this matter?  To
summarize the choices are:

          1) More code (new commands) but make year scrolling consistent
             with other scrolling (i.e. place the cursor on the first
             day of the month when the date is not visible anymore
             (note: this is always the case for year scroll))

          2) Less code (reuse calendar-[for|back]ward-year) but year
             scrolling is not consistent with other scrolling
-- 
Manuel Giraud




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 12 May 2025 18:05:14 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Mon May 12 14:05:14 2025
Received: from localhost ([127.0.0.1]:54650 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uEXWc-0000vy-Fx
	for submit <at> debbugs.gnu.org; Mon, 12 May 2025 14:05:14 -0400
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:38677)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1uEXWY-0000q1-GR
 for 78298 <at> debbugs.gnu.org; Mon, 12 May 2025 14:05:12 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id E581C432C6;
 Mon, 12 May 2025 18:05:02 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87h61s71lc.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
 <87r00x6ooy.fsf@HIDDEN> <87h61s71lc.fsf@HIDDEN>
Date: Mon, 12 May 2025 21:03:31 +0300
Message-ID: <87bjrxg0zw.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgdeftdduleefucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepgedprhgtphhtthhopeejkedvleekseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepmhhitghhrggvlhgphhgvvghruggvghgvnhesfigvsgdruggvpdhrtghpthhtohepmhgrnhhuvghlsehlvgguuhdqghhirhgruhgurdhfrh
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: Michael Heerdegen <michael_heerdegen@HIDDEN>, Eli Zaretskii <eliz@HIDDEN>,
 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

>> 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.

With placing the cursor on the first day of the month
the behavior makes sense.  But only for months, not years.

When scrolling years the need is to put the cursor
exactly on the same day/month in another year.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 11 May 2025 11:41:30 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 07:41:30 2025
Received: from localhost ([127.0.0.1]:59496 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uE53i-00035h-2R
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 07:41:30 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:10973)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uE53e-00035P-Bc
 for 78298 <at> debbugs.gnu.org; Sun, 11 May 2025 07:41:28 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=PLXrjoDf
 s1R+So19Fdk4MOZmVord638oZFdVyGdnCWY=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=LqP8IlVKRr9xqJeZrKU3jGS1irOLfA
 Rh09jfEJgeJb4Hx/xUAIEcgbye8mPZqegdNCarvBO5X5P5rdH7q7SuBg==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=PLXrjoDfs1R+So19
 Fdk4MOZmVord638oZFdVyGdnCWY=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=apzPbYbxhCFftOuD15jZEfcIEDD23Y8MeJ9uPW
 uWa/GHcntlwsnirP+X1EdeVybhJ67kQSAB9FpyiroW5jDzVHNAEJ59erhQqA0OsKJERcc9
 ZxzWYQxR7/hS9vHgrKVQX5oTH9YLoVUNKWV/2bx3EgbHFMT8Lza47w+Hv8Ru4tSRUUQMLk
 q+EVKNHUj6v7Q21zvaBDmoaz70KMZzg/AAtmkhJMyHwwf9BF9AosBhS9fPaWgWkRiJd7zM
 HlMlOeXl77ApBVfpqvlLYfLN5qaus0/+azDWCWxUkcEDyPTjdfpaebb6dVJkbxr7/27qx3
 NBlWkFgYqWFNc5rtW05d1lCA==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id ad6b796f
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Sun, 11 May 2025 13:41:24 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87ikm7ve7p.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
 <87ikm7ve7p.fsf@HIDDEN>
Date: Sun, 11 May 2025 13:41:22 +0200
Message-ID: <87bjrzjrx9.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> 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?
>
> It should be fine to use the existing functions where
> the mouse wheel bindings are just another way to use them.
> So [M-wheel-up/down] will be the same as 'C-x ]', etc.
> This compatibility is good for user's expectations.

Another thing to notice is that if today appears in scroll movement, the
cursor is placed on that date.

I have changed my mind.  As Michael Heerdegen said, I think we should
try to keep consistency for all mouse scroll.  And it is not like these
new commands are complex either.
-- 
Manuel Giraud




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 11 May 2025 06:53:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sun May 11 02:53:31 2025
Received: from localhost ([127.0.0.1]:56878 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uE0Z1-00008d-0D
	for submit <at> debbugs.gnu.org; Sun, 11 May 2025 02:53:31 -0400
Received: from relay2-d.mail.gandi.net ([2001:4b98:dc4:8::222]:57583)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1uE0Yr-00007h-13
 for 78298 <at> debbugs.gnu.org; Sun, 11 May 2025 02:53:21 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 4E7E3438C1;
 Sun, 11 May 2025 06:53:12 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87ldr57ir6.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
Date: Sun, 11 May 2025 09:47:27 +0300
Message-ID: <87ikm7ve7p.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvleejjeduucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepfedprhgtphhtthhopeejkedvleekseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepmhgrnhhuvghlsehlvgguuhdqghhirhgruhgurdhfrh
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> 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?

It should be fine to use the existing functions where
the mouse wheel bindings are just another way to use them.
So [M-wheel-up/down] will be the same as 'C-x ]', etc.
This compatibility is good for user's expectations.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 10 May 2025 18:38:57 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 10 14:38:57 2025
Received: from localhost ([127.0.0.1]:50299 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDp69-0004Je-Bj
	for submit <at> debbugs.gnu.org; Sat, 10 May 2025 14:38:57 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:29241)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uDp5v-0004In-QV
 for 78298 <at> debbugs.gnu.org; Sat, 10 May 2025 14:38:45 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=whParvWY
 ZQRHx5g8S5Fr24VE+YxjCJ+6u6BHWAdp1rs=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=BJzdKuG438mQmcxJiWiGtUXdQXFXf4
 EtT8NdkvLW6zw3JCF43mN99rf3sdvAzbJtJu95vaWSd/UoY8abBzBBAw==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=whParvWYZQRHx5g8
 S5Fr24VE+YxjCJ+6u6BHWAdp1rs=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=yuRvQiP0WK2vjp+djazBCUrlhWZgjuPn145ROz
 ytN+CpHm3e4sexls/fJ3oHOxnJp8JXRMFhQte2mX6mP6Lf8i+v4R+Sdd/4kAXZzAGxzSj6
 Fp8yj4s9r/eePV66G1g4R9r8XKaRgzly9M20UH9+bbqO8ihZ2IWQOTSzgp7rjgSd8X8ZxA
 lVVa10BMSHGBLhI5fgOuz+Yp2x1yo+bYMYg4WXEyRV9/Uw20mugFKuGClhIdMBYcmUBLuN
 lgMNivW9xsDZfY8DtLtdFAz+xLtyRencwIsXAVshr2kv40XPhGlYG/+7ZhvP0sYaQvd3AD
 sgPoJ1Yun36d3lOd4/PxBK/Q==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 018a43d9
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Sat, 10 May 2025 20:38:41 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Michael Heerdegen <michael_heerdegen@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87r00x6ooy.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
 <87r00x6ooy.fsf@HIDDEN>
Date: Sat, 10 May 2025 20:38:39 +0200
Message-ID: <87h61s71lc.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org,
 Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Michael Heerdegen <michael_heerdegen@HIDDEN> writes:

> Manuel Giraud <manuel@HIDDEN> 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




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 10 May 2025 05:03:33 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Sat May 10 01:03:33 2025
Received: from localhost ([127.0.0.1]:42656 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDcN3-0006KB-59
	for submit <at> debbugs.gnu.org; Sat, 10 May 2025 01:03:33 -0400
Received: from mout.web.de ([212.227.15.14]:57051)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1uDcN0-0006Jl-AG
 for 78298 <at> debbugs.gnu.org; Sat, 10 May 2025 01:03:31 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1746853403; x=1747458203;
 i=michael_heerdegen@HIDDEN;
 bh=bVvey/CRscYIbRzKLMP5GEQZo34H4w+TO8ECRuFpCgk=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=A3+0gL7lvA4RwNai6FUWdp3ViWgRBWDIvzJ7dKhc+PLxrnijFx8SqEkGaWF8WlzA
 FMr8oCFI/iXvxcDcg+DMLcOhAhpVhS/5P5rWrOtbP/h0aRezpK8vBjo4sHOw1xqCr
 mh8P2T+0tE6PIkjBpxJd8CyWP3FwtwYdOYtRX3xFcbyJwCOa3g8f8gWRh3XKvzfx5
 kkiPcHl57Z0Qz/9cdXIldSdExRlkHBjCkkPvMRl8UbX+jjECdgCUY9A01v3Ximct7
 oh3HZU1bK7dbtyZ1lzKanoy2+faNJ1vOyAZmgBA5dIctN/msS08cNc6wwjzelFQan
 M5lRp6dnw5E+hGGt9Q==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([88.66.201.164]) by smtp.web.de (mrweb006
 [213.165.67.108]) with ESMTPSA (Nemesis) id 1M3Euv-1uAa622gIP-00BkxV; Sat, 10
 May 2025 07:03:23 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87ldr57ir6.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN> <87ldr57ir6.fsf@HIDDEN>
Date: Sat, 10 May 2025 07:05:01 +0200
Message-ID: <87r00x6ooy.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:1+IVY3kxS0Ew9TVDGmndtLkMtChcBISe4UDrHxWSu20CJQOcxIS
 h3lbJEa2x5uuD3JWgfXW36NvcKO1ok3Xfxbd2sMyr+uNZ03UQ9PrNAAXH9b1v6VlHunRKXp
 g46NcbGnuhiQdBHxkGSUHYYk2Rj2iMB9ZEh35XIXPcl4G+EYlQbNFV6sEtL4l60notqppO9
 uKLIRIhgpy56YHxe1UOtA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:ahkQ0pxNLjY=;SJnAeqeUCYmIDPRw99sqY86a5GM
 5VYA+FSvfH4ykRghFAdu46/AQIJmqRdz3tTnCh0Atkyag1nEMkCcbIf/lci0qeabwOEHyEq5P
 qoQ2oHevHDWf0QGTl+DPFSJLhpmJSGE7AG0ilF7I8R1asFIFNbewPys4YPglEqQiCQ5u5eJyM
 POqi2+auwzyw3WT3Ro8p9kVfynBzsd6Jzhp2zN24c+zIhfcfEaAg0UY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iD37OjCJdNtwXD7kDrQxOlLIV16982X1IZp+z2
 vw/HibCO9HiM+WuMB0o0wsfBVafcCYDa34wO0DNQ9mKoYSG+/7jpd7CxHxP8/4DM51DRtAniG
 6Y/Ns8IcRUR8h2G/c+EewyStpp0dkHdm270wAiL0/lG9ItSQnmtQS/ifOKaeKU+hRUdGjt5jL
 3cwurTHExqfYxLvos4cLaodS2K/I4ZUHDh+MRmAQpl3LNrg/O/AdTSQM+6Td08rPL6RhcFATg
 jJFBWZ72BVBE9Rge+38bmSxOAEGRAT2/nUn5cqqLKbUFkkqRWAws3gGXDFIiCXSzltZo1Hwkm
 iesleYUTVNn5i6zrVe5MguB1dReHF47nY8xHN/X9Kc3gNR3gt2QZ4nmLfOSt68Dxu6HjHOX0f
 4TYFjrUn6ChfmjJkSz1/7dZYk+JP/iOjBtysK6C1aUo7WA/R0WoF6SPDG6P+PPecm4S/GWTZT
 EeiKceIUJK2usC7AaZ9OBxaSRgq8UIjFC/P9dX51Ap5Ytf20fuwbtrSTpC8N+X5Tagl5uK9nc
 iqcnQQFhhyXwAbPUGEvMyLHQ70KfindjVfcg+nZg15j8Yi9t3HdW/QTzXhenMLrzXu0nU2SOL
 BWYG9HZ1clMxjFLf0izKtYEpeDNoB/W6jS4dlSiWJ30NVA6DOY2w8iw0D4O0tup0xOoKJ/mpt
 AgCErE3PzgoUKeontCj39bahjf6kneBqkxk1xf2ZQu3e5S41I3C+RiBvCrtlRSoK8ivYhC/v3
 B/VYJv64nt3mPR0Z8D7AkokiLgLer1H7h+mbqJg/uOpc5A2zt2b/ISH5TWFf5mSoHI3DLDo9s
 ANtE7MdTPYZUg=
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org,
 Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Manuel Giraud <manuel@HIDDEN> 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?

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 9 May 2025 18:15:49 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Fri May 09 14:15:49 2025
Received: from localhost ([127.0.0.1]:39522 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDSGC-0000Vu-PY
	for submit <at> debbugs.gnu.org; Fri, 09 May 2025 14:15:49 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:21960)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uDSG9-0000JP-CY
 for 78298 <at> debbugs.gnu.org; Fri, 09 May 2025 14:15:46 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=fyKkNjbZ
 vXsoQycbtFkI2ICmmVDMZSTJXDqBg8RUf80=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=hjwt7VI62BsnWA4Inq1Yx8OOCuitr1
 zPokN0jY8IEv2qb9ZlzQwBeNDI+ct8v8hNSTQaWC+BfwDFGva/iZWrAQ==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=fyKkNjbZvXsoQycb
 tFkI2ICmmVDMZSTJXDqBg8RUf80=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=CA552gdmyTdB0PVDogcwpdRF06trzWpsDWHoop
 YVuaZPRPuzgsFWdgL7y9+04AdXMNvG8Y8dA6nQRWPYhPrmCk9cevwYDsoex76seM/Ff0/H
 NRnVeVe5LLRlNGHVsFvPSXlZ1cxay0rcqptQyTna55XR2GFp5AyDP2prvN9JB6Y2rLDZtg
 JLAVRMTFt6//xrLY3Y+gt9+T9zTsr+e08eocpSTOB4hOAdopPNMWer0qyBmgcqh9+XeLJW
 bkM8nmIu+bP+onl/1U9U1ilq5GVhUV8enZWXg0R6EJczVZVco5epTkYOqR3cZ3ofDc3lD0
 BJU3IRguSS0K+lDNULzEypSg==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 4d14f08d
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Fri, 9 May 2025 20:15:43 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87jz6r595q.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN>
Date: Fri, 09 May 2025 20:15:41 +0200
Message-ID: <87ldr57ir6.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> writes:

>> * lisp/calendar/cal-move.el (calendar-scroll-left-year)
>> (calendar-scroll-right-year): New commands to scroll the
>> calendar by year.
>
> I thought that calendar-forward-year and calendar-backward-year
> already do this?

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?
-- 
Manuel Giraud




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 9 May 2025 03:51:50 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 08 23:51:50 2025
Received: from localhost ([127.0.0.1]:34097 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uDEm6-0003Ny-71
	for submit <at> debbugs.gnu.org; Thu, 08 May 2025 23:51:50 -0400
Received: from mout.web.de ([217.72.192.78]:40269)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <michael_heerdegen@HIDDEN>)
 id 1uDEm3-0003Nf-DL
 for 78298 <at> debbugs.gnu.org; Thu, 08 May 2025 23:51:48 -0400
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de;
 s=s29768273; t=1746762700; x=1747367500;
 i=michael_heerdegen@HIDDEN;
 bh=wCAAMAOKuX2c9P8hqpGq43DSViEIliJT56QzY5DgQxc=;
 h=X-UI-Sender-Class:From:To:Cc:Subject:In-Reply-To:References:Date:
 Message-ID:MIME-Version:Content-Type:cc:content-transfer-encoding:
 content-type:date:from:message-id:mime-version:reply-to:subject:
 to;
 b=P4mxnB4Xfa+/c1VVF32AfaZj2k8Qj2+FgSr8QHexXvBAahzCW0epL2Iar3ixcNAA
 mhm4XWcgukcldUb5neQ0soLp2vEBnWDDWuS2GKbDZczUy0zE4q9OvauInuHn2UpOb
 /ruOq3dIEHuV+hcbYd37P58jksUq7rfky/O67xWpJChbqPXD5HErADPfOMgtgNgII
 kpLZZk1nWiCCwUzO0d7ZlxMIqUURfZadwsUJnDMtZMUEwzCUINHmSLjEeF975NH+5
 dhAF96thd7gMygvMtUrUliP+7qUREKRVOrh4+SXJgf2mwhV7/OIKJCoO/J9wYpaAJ
 8fU6jEZGUZCHpBL6mQ==
X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6
Received: from drachen.dragon ([88.66.201.164]) by smtp.web.de (mrweb105
 [213.165.67.124]) with ESMTPSA (Nemesis) id 1N0qvH-1uyJU904W5-00x2Ht; Fri, 09
 May 2025 05:51:40 +0200
From: Michael Heerdegen <michael_heerdegen@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87ldr7160b.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
Date: Fri, 09 May 2025 05:53:19 +0200
Message-ID: <87ldr6qw28.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Provags-ID: V03:K1:z9uTkNZ73rJZDspIKkgbGaCcjFRNGYpBCMUEdbdsEw9QHnAshwi
 6OhJS/Xza4im6aGmY+QzhbeK+R/jNtW4yEkBjGjAMomUfFL67qHG4j0hDAGjPfzmn43pukz
 NbqUhwdxXwymd8wKHUAwocylFzUIHi3vLlAgwRTSNV5ADdEnjSLZBohblzf88isTHhvpZSR
 bkTaxWtIUgrPZYG7J1HMA==
X-Spam-Flag: NO
UI-OutboundReport: notjunk:1;M01:P0:6lxdbVPztxU=;/JYxxIHmOTsjnmnYg+hzeiow8Kv
 Ozl457kv9Kx+1Rgt/GZuTQUhPnG3kc9nVZestClFp3g8LrTq+SRNKYLH+D6VvCsRvs8ZvANWb
 ct9DWkS9JcHBfI262CHwO2j+CHWxV+ZztD3fUNkoihjwt00uRi4CAJp3a1UTqeESx/OdulHNV
 Zepvwua+PhVrFu83sY9PuNFUmW1nvD8fORigZ38bPiW9wAGs1Y5XVfknZjZ+Fq1MVZZKMxPQR
 3bblzKMm9Uv9D2w1rr0wrJIqTdZS++TSq/fAn5IQV2ikWWOeoQ9/g1+xyqpo3dOpwtClB6eL5
 vK1rZfZUhiYQa6YM+1ff7/W0Aqtc4Yf3HZDI8KWScvTMBx6h78vtgY+3+/hX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SvOTXIP+Jijkb0oPWoPOyzYxB1vFTw9gZOpU8uu
 G+vs27oQneYIf//3+u77TDbHfwCBVLod4eVYWt36W9KWND6gw/9MZUF9Z3w76v0UvfKRBiT/Z
 huDh0efaRJ6zeUxKOzsvmvVanBOMbS0H5RbACKcPObHeht03MW+O3O7Jo9Qn37kx0FosITO+m
 mu7F91lf812sonGs6nie2tqkeVkytz8Z4DBICeGNYW+xsBEuh6kEwWtfuhiAvUUMQbYovDe34
 sTMioIuou6t6t0VaegfHNfThvtQmv575buGQmM0Ia7Uh75xplqWaBcPsOD3qbACkZEyapWRLt
 3zyPzBTpyJuC3OwpjQQ1l3BqSP148wrIVpFfH/pOdYSnhijhEsNXCRIdG2h/GhJjkc2YlYvZn
 38EjCOXAWOtLLVp45ccaQftnMiHmkX5EgQ3bjARiGV2j/ZeB5bdkKIrNczX/6QLRHvdaNh/He
 9Y8UmqArfDn1xvRvsvEPHWZIsQnbohAysSPuDIduRJWa+hIziP02fE3AEHZmBvuM6cNmUVycW
 /dAV53wkbvEllt6hHnh+Zn2XNziw76Rzf2ZGRBe0tdYQ5V50UbqV3LZUJwdPQaPm15hIVgNDw
 8ht0bn9AoiTQvwC+paQkI1v7a1EvR/3HKKzUmElE5TXubUcbdIm6jO2T2fFgCI5Jwj++JQqjI
 zS0jNNWyqJKdbmbWoh/UHc6OkK4t1lihvi
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org,
 Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

Manuel Giraud <manuel@HIDDEN> writes:

> Here is an updated version.

It feels natural to use this - works nicely!


Thanks,

Michael.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 8 May 2025 20:36:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 08 16:36:03 2025
Received: from localhost ([127.0.0.1]:60947 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uD7yN-0001ch-Gr
	for submit <at> debbugs.gnu.org; Thu, 08 May 2025 16:36:03 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:27265)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uD7yK-0001cG-8k
 for 78298 <at> debbugs.gnu.org; Thu, 08 May 2025 16:36:02 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=mcGyWrda
 OBYnB3xJMRS2h44Sy7QRo4Fa5Tz/Ow9QDDk=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=4AnQx28/eC1kJ5Dxgqi5I9dsw1mzE4
 iQ1xL+truYdcDOyiXqd3ai2IqinvUsF7l3FNj+IvONgtCRAb9LtvQbCQ==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=mcGyWrdaOBYnB3xJ
 MRS2h44Sy7QRo4Fa5Tz/Ow9QDDk=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=WhG+JNcXc+UXIgohVJmuXpXtLDznQdYiSeBir6
 wLr6Qk26Fwx+x0twdbAOfA/Y60RPZlwVHQwGvCULZ2CJ+7ttgyE/npc1cqIvZTAl7l0keb
 KaPECmATo+CV2HAyGhtmx57KG8gITPsi4gLzPXJHfQnN4zeIwWS5jGMUhOdSCMAQukEfzC
 Ui0FZNYKEtFn57QDHz8ZcUs6lbYMMXQfiVoXl6ffN6tvTTZ3rhnB7bxh0bAMy3tPgMKjTF
 0AsLA655UCygdVYVT7RH/QBZr1sJgQRITOq7VSbgFTUDOqUEwx/lt+93M+qIbkfDT41kju
 JbOLlgQT7piPDcEOD9AWhm0Q==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id 94475a5a
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Thu, 8 May 2025 22:35:56 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87jz6r595q.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
 <87jz6r595q.fsf@HIDDEN>
Date: Thu, 08 May 2025 22:35:55 +0200
Message-ID: <87y0v67sd0.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

Juri Linkov <juri@HIDDEN> writes:

>> * lisp/calendar/cal-move.el (calendar-scroll-left-year)
>> (calendar-scroll-right-year): New commands to scroll the
>> calendar by year.
>
> I thought that calendar-forward-year and calendar-backward-year
> already do this?

There is also calendar-forward-month and calendar-scroll-left.  So I try
to do the same as the scroll part... but you're right that I'll have to
look closer in this case.
-- 
Manuel Giraud




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 8 May 2025 17:02:55 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 08 13:02:55 2025
Received: from localhost ([127.0.0.1]:59468 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uD4e7-0004l9-3j
	for submit <at> debbugs.gnu.org; Thu, 08 May 2025 13:02:55 -0400
Received: from relay1-d.mail.gandi.net ([2001:4b98:dc4:8::221]:46523)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1uD4e1-0004kU-Ge
 for 78298 <at> debbugs.gnu.org; Thu, 08 May 2025 13:02:50 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 9EC8142E7E;
 Thu,  8 May 2025 17:02:42 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87ldr7160b.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN> <87ldr7160b.fsf@HIDDEN>
Date: Thu, 08 May 2025 20:01:21 +0300
Message-ID: <87jz6r595q.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvledtvdelucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepfedprhgtphhtthhopeejkedvleekseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepvghlihiisehgnhhurdhorhhgpdhrtghpthhtohepmhgrnhhuvghlsehlvgguuhdqghhirhgruhgurdhfrh
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: Eli Zaretskii <eliz@HIDDEN>, 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> * lisp/calendar/cal-move.el (calendar-scroll-left-year)
> (calendar-scroll-right-year): New commands to scroll the
> calendar by year.

I thought that calendar-forward-year and calendar-backward-year
already do this?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 8 May 2025 15:23:16 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu May 08 11:23:16 2025
Received: from localhost ([127.0.0.1]:58855 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uD35e-00075T-Us
	for submit <at> debbugs.gnu.org; Thu, 08 May 2025 11:23:16 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:22588)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uD35U-00074u-Es
 for 78298 <at> debbugs.gnu.org; Thu, 08 May 2025 11:23:09 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=5h+/R8B9
 gHukJAmzV7MTPZxDd6x7OBtfXuY2TlCzPXw=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=+sDLSyYp7VZtD+Nx9ZC1Xcz0MauImI
 +heJwEkVZF3pZ5Z0tasQaFrH6Ftj7LOfNLFtg5Y9JDhaUh54v6OXhSCg==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=5h+/R8B9gHukJAmz
 V7MTPZxDd6x7OBtfXuY2TlCzPXw=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=Tjx8GA/8XC6vOLOuy9sjkA10kS9CyCdn/tQFac
 V3dtHuI9/V+1f4cC1CcPzcuUROxO8hg6i8vVtJq6a3y7KZmjbIEx9NSbZfrUBKP+RUgITw
 XJVDygbP+FKgQ1WL6GZL9qs8EMw6yXnIkHEIi5pEXnJa+gvqEMb+vhw7jTbzqBm2UTK7kH
 QOhkfS8saDhh8Yy9hB7KU02cTC75DisKDNBE66ZxFWKyMgvUaPgPmIeHcgLAABH7DM1/Xm
 q9x6VT8gfruhN2qdd4vdfyV8/nPwxeTCF4RzDgj7dfAf5dNvlBAeViU6cbF52ZB01+WW+S
 T2na12wV8i4gGHu2wUeMV/Rg==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id e85fa5af
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Thu, 8 May 2025 17:23:01 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: Eli Zaretskii <eliz@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <86ecx0fe55.fsf@HIDDEN>
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
 <86ecx0fe55.fsf@HIDDEN>
Date: Thu, 08 May 2025 17:23:00 +0200
Message-ID: <87ldr7160b.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78298
Cc: 78298 <at> debbugs.gnu.org, Juri Linkov <juri@HIDDEN>
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.0 (-)

--=-=-=
Content-Type: text/plain

Eli Zaretskii <eliz@HIDDEN> writes:

>> Cc: 78298 <at> debbugs.gnu.org
>> From: Juri Linkov <juri@HIDDEN>
>> Date: Wed, 07 May 2025 19:13:33 +0300
>> 
>> > Here is simple patch that adds mouse wheel scroll to calendar.
>> > [wheel-up/down] scrolls by 3 months and [S-wheel-up/down] scrolls by 1
>> > month.
>> 
>> Thanks.  It would be nice also for M-wheel to scroll by year.
>> 
>> Do these changes need a NEWS announcement?
>
> Yes, I think so.

Here is an updated version.  I'm not quite sure about my formulation in
the NEWS entry.

--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Scroll-with-mouse-wheel-in-calendar-bug-78298.patch

From 2f1aceb1d24874329699c288b30db2bb3c945db4 Mon Sep 17 00:00:00 2001
From: Manuel Giraud <manuel@HIDDEN>
Date: Thu, 8 May 2025 16:30:20 +0200
Subject: [PATCH] Scroll with mouse wheel in calendar (bug#78298)

* lisp/calendar/cal-move.el (calendar-scroll-left-year)
(calendar-scroll-right-year): New commands to scroll the
calendar by year.
* lisp/calendar/calendar.el (calendar-mode-map): Add scroll with
mouse wheel.
* etc/NEWS: Announce the change.
---
 etc/NEWS                  | 10 ++++++++++
 lisp/calendar/cal-move.el | 20 ++++++++++++++++++++
 lisp/calendar/calendar.el |  6 ++++++
 3 files changed, 36 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index d1b0189da0c..9e838ef04b1 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2040,6 +2040,7 @@ DISABLE-URI non-nil.
 When starting these debuggers (e.g., 'M-x pdb') while visiting a file,
 pressing 'M-n' in the command prompt suggests a command line including
 the file name, using the minibuffer's "future history".
+
 ** Calendar
 
 +++
@@ -2047,6 +2048,15 @@ the file name, using the minibuffer's "future history".
 This command recenters the month of the date at point.  By default, it
 is bound to 'C-l' in the calendar buffer.
 
+---
+*** New commands 'calendar-scroll-left-year' and 'calendar-scroll-right-year'.
+These commands scroll the calendar one year at a time.
+
+---
+*** Mouse wheel bindings for scrolling the calendar.
+You can now use the mouse wheel to scroll the calendar by 3 months.
+With the shift modifier, it scrolls by one month.  With the meta
+modifier, it scrolls by year.
 
 * New Modes and Packages in Emacs 31.1
 
diff --git a/lisp/calendar/cal-move.el b/lisp/calendar/cal-move.el
index aad05f572d6..b1972ab2c09 100644
--- a/lisp/calendar/cal-move.el
+++ b/lisp/calendar/cal-move.el
@@ -217,6 +217,26 @@ calendar-scroll-right-three-months
                      last-nonmenu-event))
   (calendar-scroll-left (* -3 arg) event))
 
+;;;###cal-autoload
+(defun calendar-scroll-left-year (arg &optional event)
+  "Scroll the displayed calendar window left by 12*ARG months.
+If ARG is negative the calendar is scrolled right.  Maintains the relative
+position of the cursor with respect to the calendar as well as possible.
+EVENT is an event like `last-nonmenu-event'."
+  (interactive (list (prefix-numeric-value current-prefix-arg)
+                     last-nonmenu-event))
+  (calendar-scroll-left (* 12 arg) event))
+
+;;;###cal-autoload
+(defun calendar-scroll-right-year (arg &optional event)
+  "Scroll the displayed calendar window right by 12*ARG months.
+If ARG is negative the calendar is scrolled left.  Maintains the relative
+position of the cursor with respect to the calendar as well as possible.
+EVENT is an event like `last-nonmenu-event'."
+  (interactive (list (prefix-numeric-value current-prefix-arg)
+                     last-nonmenu-event))
+  (calendar-scroll-left (* -12 arg) event))
+
 (defvar calendar-recenter-last-op nil
   "Last calendar recenter operation performed.")
 
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index b0f6a9152d5..02626f547c1 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1587,12 +1587,18 @@ calendar-mode-map
       (define-key map (vector 'remap c) 'calendar-not-implemented))
     (define-key map "<"     'calendar-scroll-right)
     (define-key map "\C-x<" 'calendar-scroll-right)
+    (define-key map [S-wheel-up] 'calendar-scroll-right)
     (define-key map [prior] 'calendar-scroll-right-three-months)
     (define-key map "\ev"   'calendar-scroll-right-three-months)
+    (define-key map [wheel-up] 'calendar-scroll-right-three-months)
+    (define-key map [M-wheel-up] 'calendar-scroll-right-year)
     (define-key map ">"     'calendar-scroll-left)
     (define-key map "\C-x>" 'calendar-scroll-left)
+    (define-key map [S-wheel-down] 'calendar-scroll-left)
     (define-key map [next]  'calendar-scroll-left-three-months)
     (define-key map "\C-v"  'calendar-scroll-left-three-months)
+    (define-key map [wheel-down] 'calendar-scroll-left-three-months)
+    (define-key map [M-wheel-down] 'calendar-scroll-left-year)
     (define-key map "\C-l"  'calendar-recenter)
     (define-key map "\C-b"  'calendar-backward-day)
     (define-key map "\C-p"  'calendar-backward-week)
-- 
2.49.0


--=-=-=
Content-Type: text/plain

-- 
Manuel Giraud

--=-=-=--




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 7 May 2025 18:51:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 07 14:51:31 2025
Received: from localhost ([127.0.0.1]:47629 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uCjre-00073Q-Kb
	for submit <at> debbugs.gnu.org; Wed, 07 May 2025 14:51:31 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10]:33862)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <eliz@HIDDEN>) id 1uCjrc-00072u-Ax
 for 78298 <at> debbugs.gnu.org; Wed, 07 May 2025 14:51:28 -0400
Received: from fencepost.gnu.org ([2001:470:142:3::e])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <eliz@HIDDEN>)
 id 1uCjrU-0005Pp-Uk; Wed, 07 May 2025 14:51:21 -0400
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org;
 s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date:
 mime-version; bh=mrbcot4d+BUcr24hc0P7FCDVunE85PzeLLeRzizxEmc=; b=awGepYogvftS
 YnnCq9VJOiSVDOUwhWdeRvC46dZ1R9bS49KKbmOfw7SnR/poChFr7jhyrbuSuYjJWHqrO44PcRdt7
 v+ld/pCtOoHOGBegTYz+ft53qqop8WY79hBCuMSVNYjJAfFUMkqcAZ3WB/wuZI/BdYn2SbrKiPcYO
 O48HRl2iJE3d4ujLmcPe5TiaV++Gm4Kyo3Pgy3QE5UsazBe1QOSl3uCA0cOsjIJXvxEHNXzHeLIFT
 Ay/WE3UbHqPIRwzdk3ewoCZ8+lvFb3r+FVYxgtroENm6hDM6PrmQTkMyOsE+Fi5sZQES9UJ9vhIm1
 ED1XHEi0i6ROChRX212xAg==;
Date: Wed, 07 May 2025 21:51:18 +0300
Message-Id: <86ecx0fe55.fsf@HIDDEN>
From: Eli Zaretskii <eliz@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
In-Reply-To: <87frhg8klu.fsf@HIDDEN> (message from Juri Linkov on
 Wed, 07 May 2025 19:13:33 +0300)
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
References: <87msbohkly.fsf@HIDDEN> <87frhg8klu.fsf@HIDDEN>
X-Spam-Score: -2.3 (--)
X-Debbugs-Envelope-To: 78298
Cc: 78298 <at> debbugs.gnu.org, manuel@HIDDEN
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -3.3 (---)

> Cc: 78298 <at> debbugs.gnu.org
> From: Juri Linkov <juri@HIDDEN>
> Date: Wed, 07 May 2025 19:13:33 +0300
> 
> > Here is simple patch that adds mouse wheel scroll to calendar.
> > [wheel-up/down] scrolls by 3 months and [S-wheel-up/down] scrolls by 1
> > month.
> 
> Thanks.  It would be nice also for M-wheel to scroll by year.
> 
> Do these changes need a NEWS announcement?

Yes, I think so.




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at 78298 <at> debbugs.gnu.org:


Received: (at 78298) by debbugs.gnu.org; 7 May 2025 16:19:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 07 12:19:03 2025
Received: from localhost ([127.0.0.1]:46215 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uChU6-0005Vt-Oq
	for submit <at> debbugs.gnu.org; Wed, 07 May 2025 12:19:03 -0400
Received: from relay9-d.mail.gandi.net ([217.70.183.199]:59793)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1uChU3-0005VL-1M
 for 78298 <at> debbugs.gnu.org; Wed, 07 May 2025 12:19:00 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 624B8439CD;
 Wed,  7 May 2025 16:18:50 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: Manuel Giraud <manuel@HIDDEN>
Subject: Re: bug#78298: [PATCH] Scroll with mouse wheel in calendar
In-Reply-To: <87msbohkly.fsf@HIDDEN>
Organization: LINKOV.NET
References: <87msbohkly.fsf@HIDDEN>
Date: Wed, 07 May 2025 19:13:33 +0300
Message-ID: <87frhg8klu.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu)
MIME-Version: 1.0
Content-Type: text/plain
X-GND-State: clean
X-GND-Score: -100
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeefvddrtddtgddvkeejfedvucetufdoteggodetrfdotffvucfrrhhofhhilhgvmecuifetpfffkfdpucggtfgfnhhsuhgsshgtrhhisggvnecuuegrihhlohhuthemuceftddunecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdehrdduudejnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehinhgvthepledurdduvdelrddutdehrdduudejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejkedvleekseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepmhgrnhhuvghlsehlvgguuhdqghhirhgruhgurdhfrh
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78298
Cc: 78298 <at> debbugs.gnu.org
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -1.7 (-)

> Here is simple patch that adds mouse wheel scroll to calendar.
> [wheel-up/down] scrolls by 3 months and [S-wheel-up/down] scrolls by 1
> month.

Thanks.  It would be nice also for M-wheel to scroll by year.

Do these changes need a NEWS announcement?




Information forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.

Message received at submit <at> debbugs.gnu.org:


Received: (at submit) by debbugs.gnu.org; 7 May 2025 08:48:59 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed May 07 04:48:59 2025
Received: from localhost ([127.0.0.1]:40399 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uCaSZ-0004cT-0j
	for submit <at> debbugs.gnu.org; Wed, 07 May 2025 04:48:59 -0400
Received: from lists.gnu.org ([2001:470:142::17]:57362)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uCaSW-0004cA-Px
 for submit <at> debbugs.gnu.org; Wed, 07 May 2025 04:48:57 -0400
Received: from eggs.gnu.org ([2001:470:142:3::10])
 by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <manuel@HIDDEN>)
 id 1uCaSR-0000vv-78
 for bug-gnu-emacs@HIDDEN; Wed, 07 May 2025 04:48:51 -0400
Received: from ledu-giraud.fr ([51.159.28.247])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.90_1) (envelope-from <manuel@HIDDEN>)
 id 1uCaSL-0000Zh-8e
 for bug-gnu-emacs@HIDDEN; Wed, 07 May 2025 04:48:50 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=sJ2lV4VF
 szDMAsf8Vhq3QOibH5w8k35NDQsA/r7jz30=; h=date:subject:to:from; 
 d=ledu-giraud.fr;
 b=hPhZba14tfy7+jfmTnlzKIN/HKN02jz+SoGCiGVJWurwBGGHIo
 mTMlCg54sGjCgg0SILW+uB6kAXXagIfC//AA==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=sJ2lV4VFszDMAsf8
 Vhq3QOibH5w8k35NDQsA/r7jz30=; h=date:subject:to:from;
 d=ledu-giraud.fr; b=bn2OK0sJ4uFUtVZ+O47ZSuM+Xs6q91gVZ2Mvv7RhHxmbZCpnoK
 k0mT9vh0mGssLBmCYWFHdIl8GJ3n+6J8GNo7mbcRbJTV/bgtIW2Z1BP6HnUPTf87CtUs2K
 RuYAa4HVxkINUBO6X2FjamCZaY9M+8vYVfzJLO2WjUYXRdW+CQARkrf3s0trNnHUOLE9T4
 8LTOhhuXclxlL7ljelVfWPDilgK/mUHCViZanHgzzig6UecRD9h9ZP5JyKxgVvpzcviXZ0
 1zQl4yssT0TvYmerxikRkejsElzOac7adtmi0YNScHzs5Y8TGpYGChRySaJ70PJFMyXiDc
 Qj3UECBmmzEA==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id c6fc0ac2
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO) for <bug-gnu-emacs@HIDDEN>;
 Wed, 7 May 2025 10:48:42 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] Scroll with mouse wheel in calendar
X-Debbugs-Cc: 
Date: Wed, 07 May 2025 10:48:41 +0200
Message-ID: <87msbohkly.fsf@HIDDEN>
User-Agent: Gnus/5.13 (Gnus v5.13)
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=51.159.28.247; envelope-from=manuel@HIDDEN;
 helo=ledu-giraud.fr
X-Spam_score_int: -20
X-Spam_score: -2.1
X-Spam_bar: --
X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1,
 DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1,
 RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_BLOCKED=0.001,
 SPF_HELO_PASS=-0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 0.9 (/)
X-Debbugs-Envelope-To: submit
X-BeenThere: debbugs-submit <at> debbugs.gnu.org
X-Mailman-Version: 2.1.18
Precedence: list
List-Id: <debbugs-submit.debbugs.gnu.org>
List-Unsubscribe: <https://debbugs.gnu.org/cgi-bin/mailman/options/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=unsubscribe>
List-Archive: <https://debbugs.gnu.org/cgi-bin/mailman/private/debbugs-submit/>
List-Post: <mailto:debbugs-submit <at> debbugs.gnu.org>
List-Help: <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=help>
List-Subscribe: <https://debbugs.gnu.org/cgi-bin/mailman/listinfo/debbugs-submit>, 
 <mailto:debbugs-submit-request <at> debbugs.gnu.org?subject=subscribe>
Errors-To: debbugs-submit-bounces <at> debbugs.gnu.org
Sender: "Debbugs-submit" <debbugs-submit-bounces <at> debbugs.gnu.org>
X-Spam-Score: -0.1 (/)

--=-=-=
Content-Type: text/plain

Tags: patch

Hi,

Here is simple patch that adds mouse wheel scroll to calendar.
[wheel-up/down] scrolls by 3 months and [S-wheel-up/down] scrolls by 1
month.



In GNU Emacs 31.0.50 (build 5, x86_64-unknown-openbsd7.7) of 2025-05-07
 built on computer
Repository revision: ac52ffa0db54c52afbc455e342ea3b1ba300718f
Repository branch: mgi/calendar-wheel
Windowing system distributor 'The X.Org Foundation', version 11.0.12101016
System Description: OpenBSD computer 7.7 GENERIC.MP#644 amd64

Configured using:
 'configure CC=egcc CPPFLAGS=-I/usr/local/include
 LDFLAGS=-L/usr/local/lib MAKEINFO=gmakeinfo --prefix=/home/manuel/emacs
 --bindir=/home/manuel/bin --with-x-toolkit=no
 --with-toolkit-scroll-bars=no --without-cairo
 --without-compress-install'


--=-=-=
Content-Type: text/patch
Content-Disposition: attachment;
 filename=0001-Scroll-with-mouse-wheel-in-calendar.patch

From ac52ffa0db54c52afbc455e342ea3b1ba300718f Mon Sep 17 00:00:00 2001
From: Manuel Giraud <manuel@HIDDEN>
Date: Wed, 7 May 2025 09:05:04 +0200
Subject: [PATCH] Scroll with mouse wheel in calendar

* lisp/calendar/calendar.el (calendar-mode-map): Add scroll with
mouse wheel.
---
 lisp/calendar/calendar.el | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index 058982647fe..61686e08d8a 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1587,12 +1587,16 @@ calendar-mode-map
       (define-key map (vector 'remap c) 'calendar-not-implemented))
     (define-key map "<"     'calendar-scroll-right)
     (define-key map "\C-x<" 'calendar-scroll-right)
+    (define-key map [S-wheel-up] 'calendar-scroll-right)
     (define-key map [prior] 'calendar-scroll-right-three-months)
     (define-key map "\ev"   'calendar-scroll-right-three-months)
+    (define-key map [wheel-up] 'calendar-scroll-right-three-months)
     (define-key map ">"     'calendar-scroll-left)
     (define-key map "\C-x>" 'calendar-scroll-left)
+    (define-key map [S-wheel-down] 'calendar-scroll-left)
     (define-key map [next]  'calendar-scroll-left-three-months)
     (define-key map "\C-v"  'calendar-scroll-left-three-months)
+    (define-key map [wheel-down] 'calendar-scroll-left-three-months)
     (define-key map "\C-b"  'calendar-backward-day)
     (define-key map "\C-p"  'calendar-backward-week)
     (define-key map "\e{"   'calendar-backward-month)
-- 
2.49.0


--=-=-=
Content-Type: text/plain


-- 
Manuel Giraud

--=-=-=--




Acknowledgement sent to Manuel Giraud <manuel@HIDDEN>:
New bug report received and forwarded. Copy sent to bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to bug-gnu-emacs@HIDDEN:
bug#78298; Package emacs. Full text available.
Please note: This is a static page, with minimal formatting, updated once a day.
Click here to see this page with the latest information and nicer formatting.
Last modified: Wed, 14 May 2025 18:15:02 UTC

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