GNU bug report logs - #78753
[PATCH] Add repeat-map for calendar year navigation commands

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: "Paul D. Nelson" <ultrono@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 78753 <at> debbugs.gnu.org and "Paul D. Nelson" <ultrono@HIDDEN> Request was from Juri Linkov <juri@HIDDEN> to control <at> debbugs.gnu.org. Full text available.

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


Received: (at 78753) by debbugs.gnu.org; 12 Jun 2025 06:35:03 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Thu Jun 12 02:35:03 2025
Received: from localhost ([127.0.0.1]:55452 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uPbWh-0003HI-2N
	for submit <at> debbugs.gnu.org; Thu, 12 Jun 2025 02:35:03 -0400
Received: from relay16.mail.gandi.net ([2001:4b98:dc4:8::236]:36039)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>)
 id 1uPbWe-0003GO-Ot; Thu, 12 Jun 2025 02:35:01 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 35862449E7;
 Thu, 12 Jun 2025 06:34:50 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: "Paul D. Nelson" <ultrono@HIDDEN>
Subject: Re: bug#78753: [PATCH] Add repeat-map for calendar year navigation
 commands
In-Reply-To: <uxsg7t4iwmkuuu.fsf@HIDDEN>
Organization: LINKOV.NET
References: <uxsg7t4iwmkuuu.fsf@HIDDEN>
Date: Thu, 12 Jun 2025 09:33:56 +0300
Message-ID: <87cyb94gff.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: 0
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugddugeefiecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddtfedrvdejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepfedprhgtphhtthhopegtohhnthhrohhlseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepjeekjeehfeesuggvsggsuhhgshdrghhnuhdrohhrghdprhgtphhtthhopehulhhtrhhonhhosehgmhgrihhlrdgtohhm
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 78753
Cc: 78753 <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 (-)

close 78753 31.0.50
thanks

> Very well, please see attached.

Thanks, pushed.




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

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


Received: (at 78753) by debbugs.gnu.org; 11 Jun 2025 18:16:01 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 11 14:16:00 2025
Received: from localhost ([127.0.0.1]:51440 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uPPzR-0006Zw-LB
	for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 14:16:00 -0400
Received: from mail-lf1-x134.google.com ([2a00:1450:4864:20::134]:59423)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1uPPzJ-0006Vx-G4
 for 78753 <at> debbugs.gnu.org; Wed, 11 Jun 2025 14:15:53 -0400
Received: by mail-lf1-x134.google.com with SMTP id
 2adb3069b0e04-55342bca34eso73584e87.2
 for <78753 <at> debbugs.gnu.org>; Wed, 11 Jun 2025 11:15:49 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1749665740; x=1750270540; darn=debbugs.gnu.org;
 h=mime-version:message-id:date:in-reply-to:subject:cc:to:from:from:to
 :cc:subject:date:message-id:reply-to;
 bh=UgEq6KkzknRJCL9gbTIVMxFnNl0Vb0l/8Tn6eM/e7JI=;
 b=XRfnTlbcs85PPikLG9U6DQ5DMrKKQ1mleFFH9nedYltrCXoQdYficjIJmbb0tMs5FH
 8r9SxqtvP/gM7IwPsfz/plEJ9eKOl4HMEGYnBXLC6MxbWhHlZF4BRrvbN+fRz3WDNkEV
 EwpjbT4lUhfNzfFczhS4bO0+kGhbnCp86WSZxtXNI/2TpQ+QeXMDVqLImBJWrfKdryCO
 HltEGKWymVPrPtYp+y8wS+GIHZ9BnLlkANUsZqUJ+q1laWCZ0z4xd0CEk7KP/7+7avP0
 1LHR8IqkW9hC5cwOgHjrq5NvMIlxo2Gj5FqePhu7yBIwYWxWRG+S2Xl57es96qA/TEiL
 gccw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1749665740; x=1750270540;
 h=mime-version:message-id:date:in-reply-to:subject:cc:to:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=UgEq6KkzknRJCL9gbTIVMxFnNl0Vb0l/8Tn6eM/e7JI=;
 b=PFykGec2JeXQpsAIZNvXg1uHhvKs0ZDyVjwaDyjzA3ckYOS0qFXLFy3y48J4Ez2Wjk
 1ZzKMgVSGN8KchBP3/0M4YhaMBCDlyh7t2O9qYxMa3YK0ALTDojg7n8nuy7Mf4FJkpGA
 9g5R+V+nApuIrAJu7EjImHoqY/vsntVNCYi8PML0MXCxSHosrCD+fI1vrF7032sKGOFp
 NPc9EntUgiDR1KAdSBoatAER2/tProt5oE7ICB4a8r48fTBFeUkoajaBGhyd/sV6ptlt
 Fl/aUKJQP2xCAoCZ+hwB/PE0pPKUox0DV9UzgxMK7O9OPUFjlas6UhuTjtDxLWBjgKaQ
 8YCQ==
X-Gm-Message-State: AOJu0YytEkhsV153QVamtMSh45wbgGbBbURf3BlIp1AzKI7lpfdqD3dv
 Fwjg+pMI3TYuIA6PRj92f3Bw8DrATRlNVkn9IwBjjxKKGjbGqUvGoX6gCI6WU1TL
X-Gm-Gg: ASbGncta3Ah9AvW8dZrIrdJDlWv39M3lwKsVdwvc7rDv8ohNfpt7p4LNLWNtw+I8RO2
 RNgM8dJi1ktEcgQL91D/evwQCyq1pVweAGF0ptI7cd+hMJuB+qAjEAo8RYaVBfsLJrf9RNgrpPj
 SBXdzWvZFdIOaD7ygFY9ne3JJplRJnPuTH4B5U/yQ0dIeg9JZbvwaMFfnfn0GKuz0UJwAJDgHz2
 kB5AATdq61zSSvRxgwbpyVVRhrx9PJb2BWzJKu33oc5dwIqy/CcOoDDp7y7tuLNEPgWuGrJN/2D
 dO5Be1UM0YKAjqsHU6Gcexq/fv0TOZYFiPJNYd5Dep9UjMTKVgeESM7BZD3PlAYbMCw=
X-Google-Smtp-Source: AGHT+IEpYTtffkIt5t0MvfZ2/RqLz0RX17l8FhW4VjamIQf63SWPGJqIXTn37OvDiOmp2g2UiXd8Ig==
X-Received: by 2002:a05:6512:159a:b0:553:26a7:70ec with SMTP id
 2adb3069b0e04-5539c01f1bbmr1448629e87.0.1749665740177; 
 Wed, 11 Jun 2025 11:15:40 -0700 (PDT)
Received: from localhost ([185.229.155.48])
 by smtp.gmail.com with UTF8SMTPSA id
 2adb3069b0e04-553676d03d8sm2028339e87.7.2025.06.11.11.15.38
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 11 Jun 2025 11:15:39 -0700 (PDT)
From: "Paul D. Nelson" <ultrono@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#78753: [PATCH] Add repeat-map for calendar year navigation
 commands
In-Reply-To: <875xh2jl0p.fsf@HIDDEN> (message from Juri Linkov on
 Wed, 11 Jun 2025 19:40:27 +0300)
Date: Wed, 11 Jun 2025 20:15:37 +0200
Message-ID: <uxsg7t4iwmkuuu.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78753
Cc: 78753 <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 (-)

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

Juri Linkov <juri@HIDDEN> writes:

>>>> With this patch and with repeat-mode active, one can navigate by year in
>>>> calendar using 'C-x ] ]' rather than 'C-x ] C-x ]', for instance.
>>>
>>> I wanted to suggest the same thing for 'C-x >', but discovered it has
>>> a shorter alternative '>' for the same command 'calendar-scroll-left'.
>>> (I don't remember whether I usually use it or the longer sequence).
>>>
>>> Would it be simpler just to add the single key bindings '[' and ']'?
>>> There are currently free in 'calendar-mode-map'.
>>
>> Ah, good thinking.  Yes, and along similar lines, how about binding '{'
>> and '}' to 'calendar-backward-month' and 'calendar-forward-month'?
>
> Good idea.
>
>> Let me know if I can help with this or if it's easier for you just to do
>> it.
>
> It's not easier for me since it requires also updating the documentation ;-)

Very well, please see attached.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Add-simpler-binds-for-calendar-month-year-navigation.patch

From 5023c4b163a26f2f93a743eb08426264d7716985 Mon Sep 17 00:00:00 2001
From: Paul Nelson <ultrono@HIDDEN>
Date: Tue, 10 Jun 2025 11:33:05 +0200
Subject: [PATCH] Add simpler binds for calendar month/year navigation

* lisp/calendar/calendar.el (calendar-mode-map): Add keybindings
'{' and '}' for month navigation, '[' and ']' for year
navigation (bug#78753).
* doc/emacs/calendar.texi (Calendar Unit Motion): Document
them.
---
 doc/emacs/calendar.texi   | 11 +++++++++++
 etc/NEWS                  |  5 +++++
 lisp/calendar/calendar.el |  4 ++++
 3 files changed, 20 insertions(+)

diff --git a/doc/emacs/calendar.texi b/doc/emacs/calendar.texi
index 56f297db5d0..b3558448975 100644
--- a/doc/emacs/calendar.texi
+++ b/doc/emacs/calendar.texi
@@ -84,12 +84,16 @@ Calendar Unit Motion
 @item C-p
 Move point one week backward (@code{calendar-backward-week}).
 @item M-@}
+@itemx @}
 Move point one month forward (@code{calendar-forward-month}).
 @item M-@{
+@itemx @{
 Move point one month backward (@code{calendar-backward-month}).
 @item C-x ]
+@itemx ]
 Move point one year forward (@code{calendar-forward-year}).
 @item C-x [
+@itemx [
 Move point one year backward (@code{calendar-backward-year}).
 @end table
 
@@ -114,12 +118,16 @@ Calendar Unit Motion
 @kbd{C-p}, just as they normally are in other modes.
 
 @kindex M-@} @r{(Calendar mode)}
+@kindex @} @r{(Calendar mode)}
 @findex calendar-forward-month
 @kindex M-@{ @r{(Calendar mode)}
+@kindex @{ @r{(Calendar mode)}
 @findex calendar-backward-month
 @kindex C-x ] @r{(Calendar mode)}
+@kindex ] @r{(Calendar mode)}
 @findex calendar-forward-year
 @kindex C-x [ @r{(Calendar mode)}
+@kindex [ @r{(Calendar mode)}
 @findex calendar-backward-year
   The commands for motion by months and years work like those for
 weeks, but move a larger distance.  The month commands @kbd{M-@}}
@@ -137,6 +145,9 @@ Calendar Unit Motion
 commands move by an entire month or an entire year, keeping the same
 date within the month or year.
 
+  You can also use the simpler to type keystrokes @kbd{@}} and @kbd{@{}
+to navigate by month, and @kbd{]} and @kbd{[} to navigate by year.
+
   All these commands accept a numeric argument as a repeat count.
 For convenience, the digit keys and the minus sign specify numeric
 arguments in Calendar mode even without the Meta modifier.  For example,
diff --git a/etc/NEWS b/etc/NEWS
index c5172b40da6..0a9450614d4 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2168,6 +2168,11 @@ is bound to 'C-l' in the calendar buffer.
 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.
+
+*** Simpler month and year navigation binds in calendar.
+The month and year navigation binds 'M-}', 'M-{', 'C-x ]' and 'C-x ['
+now admit the alternatives '}', '{', ']' and '['.
+
 
 * New Modes and Packages in Emacs 31.1
 
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index c448955450e..1c98de98b9b 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1603,7 +1603,9 @@ calendar-mode-map
     (define-key map "\C-b"  'calendar-backward-day)
     (define-key map "\C-p"  'calendar-backward-week)
     (define-key map "\e{"   'calendar-backward-month)
+    (define-key map "{"   'calendar-backward-month)
     (define-key map "\C-x[" 'calendar-backward-year)
+    (define-key map "[" 'calendar-backward-year)
     (define-key map "\C-f"  'calendar-forward-day)
     (define-key map "\C-n"  'calendar-forward-week)
     (define-key map [left]  'calendar-backward-day)
@@ -1611,7 +1613,9 @@ calendar-mode-map
     (define-key map [right] 'calendar-forward-day)
     (define-key map [down]  'calendar-forward-week)
     (define-key map "\e}"   'calendar-forward-month)
+    (define-key map "}"   'calendar-forward-month)
     (define-key map "\C-x]" 'calendar-forward-year)
+    (define-key map "]" 'calendar-forward-year)
     (define-key map "\C-a"  'calendar-beginning-of-week)
     (define-key map "\C-e"  'calendar-end-of-week)
     (define-key map "\ea"   'calendar-beginning-of-month)
-- 
2.39.3 (Apple Git-145)


--=-=-=--




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

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


Received: (at 78753) by debbugs.gnu.org; 11 Jun 2025 16:45:43 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 11 12:45:41 2025
Received: from localhost ([127.0.0.1]:50852 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uPOZy-0006ai-2s
	for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 12:45:39 -0400
Received: from relay15.mail.gandi.net ([2001:4b98:dc4:8::235]:44435)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1uPOZu-0006Zx-FZ
 for 78753 <at> debbugs.gnu.org; Wed, 11 Jun 2025 12:45:31 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id AEE324420C;
 Wed, 11 Jun 2025 16:45:22 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: "Paul D. Nelson" <ultrono@HIDDEN>
Subject: Re: bug#78753: [PATCH] Add repeat-map for calendar year navigation
 commands
In-Reply-To: <uxsg7tecvqlpey.fsf@HIDDEN>
Organization: LINKOV.NET
References: <uxsg7tecvqlpey.fsf@HIDDEN>
Date: Wed, 11 Jun 2025 19:40:27 +0300
Message-ID: <875xh2jl0p.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: 0
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdduvdejtdcutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddtfedrvdejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejkeejheefseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepuhhlthhrohhnohesghhmrghilhdrtghomh
X-Spam-Score: -0.0 (/)
X-Debbugs-Envelope-To: 78753
Cc: 78753 <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 (-)

>>> With this patch and with repeat-mode active, one can navigate by year in
>>> calendar using 'C-x ] ]' rather than 'C-x ] C-x ]', for instance.
>>
>> I wanted to suggest the same thing for 'C-x >', but discovered it has
>> a shorter alternative '>' for the same command 'calendar-scroll-left'.
>> (I don't remember whether I usually use it or the longer sequence).
>>
>> Would it be simpler just to add the single key bindings '[' and ']'?
>> There are currently free in 'calendar-mode-map'.
>
> Ah, good thinking.  Yes, and along similar lines, how about binding '{'
> and '}' to 'calendar-backward-month' and 'calendar-forward-month'?

Good idea.

> Let me know if I can help with this or if it's easier for you just to do
> it.

It's not easier for me since it requires also updating the documentation ;-)




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

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


Received: (at 78753) by debbugs.gnu.org; 11 Jun 2025 07:38:51 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 11 03:38:51 2025
Received: from localhost ([127.0.0.1]:46141 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uPG2t-0006Go-0M
	for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 03:38:51 -0400
Received: from ledu-giraud.fr ([51.159.28.247]:4689)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <manuel@HIDDEN>)
 id 1uPG2p-0006GT-Ay
 for 78753 <at> debbugs.gnu.org; Wed, 11 Jun 2025 03:38:48 -0400
DKIM-Signature: v=1; a=ed25519-sha256; c=simple/simple; s=ed25519; bh=6/NpMFyw
 imQky8dXbxlMfRdaTTBeD4T8rNrtAXCja1M=;
 h=date:references:in-reply-to:
 subject:cc:to:from; d=ledu-giraud.fr; b=4QlkcL0kiTNaZJa9qzxnNEAfHgWHuc
 ShZyupuyPPs3SVFuBXII/eq99Xd2eI5gqhraePiH56rPYgEx8urgbADQ==
DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; s=rsa; bh=6/NpMFywimQky8dX
 bxlMfRdaTTBeD4T8rNrtAXCja1M=;
 h=date:references:in-reply-to:subject:
 cc:to:from; d=ledu-giraud.fr; b=zUcY5akgLfR+Rq/iqIAnhO6OEvn4rMlpFfxfFu
 w/FD5syyGuLQQ/9A+HmNcVFEkAjmKHmBrO/wR5LLvH9EVdGFANigDjRutIr5G4VKE0FB4M
 RyqknW+gt5pHs2c9t176whuWa0WFXCKnEG2ZqeVLBCcz89vZAPK+TtFqvdFOvSxs/WZxGY
 z9hRXMg6RRUa0aQItEegPi88kr18a+wTTM8h4anm47l6HPTagvR8/4kT+1Od6p5NoA9rTP
 Ket/ON16xuG0Z5QCpO/lOkOLUkqbOQphFa1FVB+/grkP1UryibnJz8C/XnnbLqL9LEr+sx
 KnPEJkxeLCtl5fdJZ+pHzeqw==
Received: from computer (<unknown> [10.1.1.1])
 by ledu-giraud.fr (OpenSMTPD) with ESMTPSA id f290385d
 (TLSv1.3:TLS_AES_256_GCM_SHA384:256:NO); 
 Wed, 11 Jun 2025 09:38:45 +0200 (CEST)
From: Manuel Giraud <manuel@HIDDEN>
To: "Paul D. Nelson" <ultrono@HIDDEN>
Subject: Re: bug#78753: [PATCH] Add repeat-map for calendar year navigation
 commands
In-Reply-To: <uxsg7th60nlavq.fsf@HIDDEN>
References: <uxsg7th60nlavq.fsf@HIDDEN>
Date: Wed, 11 Jun 2025 09:38:44 +0200
Message-ID: <87jz5i4tiz.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: 78753
Cc: 78753 <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 (-)

"Paul D. Nelson" <ultrono@HIDDEN> writes:

> With this patch and with repeat-mode active, one can navigate by year in
> calendar using 'C-x ] ]' rather than 'C-x ] C-x ]', for instance.

Thanks.  It works as expected.  I too was thinking about adding the same
feature to 'M-{' and 'M-}'.
-- 
Manuel Giraud




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

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


Received: (at 78753) by debbugs.gnu.org; 11 Jun 2025 07:15:48 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 11 03:15:48 2025
Received: from localhost ([127.0.0.1]:45984 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uPFgZ-0004fG-KE
	for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 03:15:48 -0400
Received: from mail-lj1-x232.google.com ([2a00:1450:4864:20::232]:55667)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1uPFgU-0004eY-MP
 for 78753 <at> debbugs.gnu.org; Wed, 11 Jun 2025 03:15:43 -0400
Received: by mail-lj1-x232.google.com with SMTP id
 38308e7fff4ca-32aabfd3813so51537331fa.3
 for <78753 <at> debbugs.gnu.org>; Wed, 11 Jun 2025 00:15:42 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1749626135; x=1750230935; darn=debbugs.gnu.org;
 h=mime-version:message-id:date:in-reply-to:subject:cc:to:from:from:to
 :cc:subject:date:message-id:reply-to;
 bh=kzdZl1AHBgprk9GwT6noa6Fxn2/CbdJd89NtJx8C1hI=;
 b=UoH1P26N98TuGAVqgIb48xvFBxFm0mqTSWAbE0Q2sJD1YITPr3/73uxMtou7wTqnaH
 0O84GrxoeZVfblydYZ2MxBzQ1O3qjhCQmrMWgi6g8gF3NrRfvqx9JggzcK70UFCUS/BJ
 C7t/Y+CFwUIsNUJ6Fj4XDvHy7pNifdsLMqR/aToJr5YILcwuMZp7fS7dR8DLxox1csc5
 IHCVqs3gCP/R5mVSFxsQdjCnEhubzEAN822Zwu33NXskayYHHeE93H+S8nETcqNbdvq8
 SNZ/P9JBljKj8oDKy3d4f5pqdL0Sw4j7I0PjRHmFZQS1PFtETqiiapaq12pwW5n27PsE
 XhwQ==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1749626135; x=1750230935;
 h=mime-version:message-id:date:in-reply-to:subject:cc:to:from
 :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
 bh=kzdZl1AHBgprk9GwT6noa6Fxn2/CbdJd89NtJx8C1hI=;
 b=gFV9a84wYIxLsxIPBJDK8MpRQCG+7u+61UcbaigIYe/EaWJ+rMfN5WrzSeKhwQf5Lc
 uD5ElQeOlrKh8rqGWqid/adj/pB/yE6hfPKOqVVfNl5/+nQWvbN9vfvzw9sQhihGr63v
 zHGiDAu2r6HLSxLNXknFuyPP5wt2FyZBGoymIc26iD5paZ6yneGi4xjD0xzWs38SFOf5
 MCQW7ZS0d4+6PDeClJ0NJw4wyZJNGiQe2DTqMI5yC4JZwDWhoiNJ+HAapSxQS4XYgflU
 5CwssAjhV3IPrQ3aXyN0Ru6h+j+TRfA6JHd1Ln1w0OQhE5aKPrSz+zS7ogjRdK/Ee7iO
 bPvw==
X-Gm-Message-State: AOJu0Yy4ZFrBllJq4AGN6uUI0U6OrP9wToG0FXprjZ6Cc0NZo/jntoxG
 8Zo29y0hoiGu27PSd8cJlihduuADPfFmy2sXJkzgS6JCGdOb/F3yN5kk
X-Gm-Gg: ASbGncsZ9tVd+2uCp6t4abqLSBQyfc6Ct8OSfRvdK5Ek2lAQePT1ovvLEl22Yy6XJpz
 IhTncMytmiFbiFXuct0obZqGlK6kV+r12fLCpLhjE/1p9D2SzaunlthuGIZeq77fLlvO/bs6xY6
 mCHoQB/7pXmUqcXLhUBEkjN5kARnYFo9mgJIEzzKa+aKI0SnK+m/5jh9Vibr5TOL1vMy9opY7Xl
 LMiJgA7LRV7O5XtPB0FDEaJnSYiF3vtF8YV+Dy5h9oYzGRxSsZlivjVE93M9F9Io5RaAE7eZaaU
 AiOTF7KnwJJ4tW9O9pHOiBJEegQj9tTcLFTTipIjd8/jwpNDUg5vdyqlNyMhN3HFiGcCtokW+Oi
 5AQ==
X-Google-Smtp-Source: AGHT+IGEeudOKAOuWKDGtrsSirBGT+x6BtHB3eX7oWKliSyAEUC2z1z5QDUETi+tEd2tux1Lu/Tvdw==
X-Received: by 2002:a2e:be0c:0:b0:32a:8764:ecf1 with SMTP id
 38308e7fff4ca-32b22285626mr4696491fa.4.1749626135156; 
 Wed, 11 Jun 2025 00:15:35 -0700 (PDT)
Received: from localhost ([185.229.155.48])
 by smtp.gmail.com with UTF8SMTPSA id
 38308e7fff4ca-32ae1b0cf7fsm17123151fa.12.2025.06.11.00.15.34
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Wed, 11 Jun 2025 00:15:34 -0700 (PDT)
From: "Paul D. Nelson" <ultrono@HIDDEN>
To: Juri Linkov <juri@HIDDEN>
Subject: Re: bug#78753: [PATCH] Add repeat-map for calendar year navigation
 commands
In-Reply-To: <875xh2py5z.fsf@HIDDEN> (message from Juri Linkov on
 Wed, 11 Jun 2025 09:52:56 +0300)
Date: Wed, 11 Jun 2025 09:15:33 +0200
Message-ID: <uxsg7tecvqlpey.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: text/plain
X-Spam-Score: 0.0 (/)
X-Debbugs-Envelope-To: 78753
Cc: 78753 <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:

>> With this patch and with repeat-mode active, one can navigate by year in
>> calendar using 'C-x ] ]' rather than 'C-x ] C-x ]', for instance.
>
> I wanted to suggest the same thing for 'C-x >', but discovered it has
> a shorter alternative '>' for the same command 'calendar-scroll-left'.
> (I don't remember whether I usually use it or the longer sequence).
>
> Would it be simpler just to add the single key bindings '[' and ']'?
> There are currently free in 'calendar-mode-map'.

Ah, good thinking.  Yes, and along similar lines, how about binding '{'
and '}' to 'calendar-backward-month' and 'calendar-forward-month'?

Let me know if I can help with this or if it's easier for you just to do
it.




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

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


Received: (at 78753) by debbugs.gnu.org; 11 Jun 2025 06:56:31 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Wed Jun 11 02:56:31 2025
Received: from localhost ([127.0.0.1]:45828 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uPFNv-0000Al-Fw
	for submit <at> debbugs.gnu.org; Wed, 11 Jun 2025 02:56:31 -0400
Received: from relay2-d.mail.gandi.net ([217.70.183.194]:44311)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <juri@HIDDEN>) id 1uPFNs-0000AH-5t
 for 78753 <at> debbugs.gnu.org; Wed, 11 Jun 2025 02:56:29 -0400
Received: by mail.gandi.net (Postfix) with ESMTPSA id 37708441CD;
 Wed, 11 Jun 2025 06:56:19 +0000 (UTC)
From: Juri Linkov <juri@HIDDEN>
To: "Paul D. Nelson" <ultrono@HIDDEN>
Subject: Re: bug#78753: [PATCH] Add repeat-map for calendar year navigation
 commands
In-Reply-To: <uxsg7th60nlavq.fsf@HIDDEN>
Organization: LINKOV.NET
References: <uxsg7th60nlavq.fsf@HIDDEN>
Date: Wed, 11 Jun 2025 09:52:56 +0300
Message-ID: <875xh2py5z.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: 0
X-GND-Cause: gggruggvucftvghtrhhoucdtuddrgeeffedrtddugdduudekhecutefuodetggdotefrodftvfcurfhrohhfihhlvgemucfitefpfffkpdcuggftfghnshhusghstghrihgsvgenuceurghilhhouhhtmecufedtudenucenucfjughrpefhvfevufgjohhffffkfgggtgesthdtredttdertdenucfhrhhomheplfhurhhiucfnihhnkhhovhcuoehjuhhriheslhhinhhkohhvrdhnvghtqeenucggtffrrghtthgvrhhnpeffgeetfeevlefhleejfeeuheeiudeitdffhfdutdekfeffgffhveehteegueekheenucfkphepledurdduvdelrddutdefrddvjeenucevlhhushhtvghrufhiiigvpedtnecurfgrrhgrmhepihhnvghtpeeluddruddvledruddtfedrvdejpdhhvghlohepmhgrihhlrdhgrghnughirdhnvghtpdhmrghilhhfrhhomhepjhhurhhisehlihhnkhhovhdrnhgvthdpnhgspghrtghpthhtohepvddprhgtphhtthhopeejkeejheefseguvggssghughhsrdhgnhhurdhorhhgpdhrtghpthhtohepuhhlthhrohhnohesghhmrghilhdrtghomh
X-GND-Sasl: juri@HIDDEN
X-Spam-Score: -0.7 (/)
X-Debbugs-Envelope-To: 78753
Cc: 78753 <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 this patch and with repeat-mode active, one can navigate by year in
> calendar using 'C-x ] ]' rather than 'C-x ] C-x ]', for instance.

I wanted to suggest the same thing for 'C-x >', but discovered it has
a shorter alternative '>' for the same command 'calendar-scroll-left'.
(I don't remember whether I usually use it or the longer sequence).

Would it be simpler just to add the single key bindings '[' and ']'?
There are currently free in 'calendar-mode-map'.




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

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


Received: (at submit) by debbugs.gnu.org; 10 Jun 2025 18:17:37 +0000
From debbugs-submit-bounces <at> debbugs.gnu.org Tue Jun 10 14:17:37 2025
Received: from localhost ([127.0.0.1]:39520 helo=debbugs.gnu.org)
	by debbugs.gnu.org with esmtp (Exim 4.84_2)
	(envelope-from <debbugs-submit-bounces <at> debbugs.gnu.org>)
	id 1uP3XS-000352-Pp
	for submit <at> debbugs.gnu.org; Tue, 10 Jun 2025 14:17:37 -0400
Received: from lists.gnu.org ([2001:470:142::17]:49280)
 by debbugs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)
 (Exim 4.84_2) (envelope-from <ultrono@HIDDEN>) id 1uP3XO-00033c-GY
 for submit <at> debbugs.gnu.org; Tue, 10 Jun 2025 14:17:32 -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 <ultrono@HIDDEN>) id 1uP3XE-0001Vg-V7
 for bug-gnu-emacs@HIDDEN; Tue, 10 Jun 2025 14:17:22 -0400
Received: from mail-lf1-x12a.google.com ([2a00:1450:4864:20::12a])
 by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128)
 (Exim 4.90_1) (envelope-from <ultrono@HIDDEN>) id 1uP3XD-0004D6-41
 for bug-gnu-emacs@HIDDEN; Tue, 10 Jun 2025 14:17:20 -0400
Received: by mail-lf1-x12a.google.com with SMTP id
 2adb3069b0e04-55350d0eedeso6005670e87.2
 for <bug-gnu-emacs@HIDDEN>; Tue, 10 Jun 2025 11:17:17 -0700 (PDT)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=gmail.com; s=20230601; t=1749579436; x=1750184236; darn=gnu.org;
 h=mime-version:message-id:date:subject:to:from:from:to:cc:subject
 :date:message-id:reply-to;
 bh=Bw+tLGskk6B7PREOow6e0Ihjubrb7OEdhPjRjjxiwNU=;
 b=E1ttSbJP4AY0hATqfTmXxVhEsorEYeoflg1rjpbjjJfhCy7BX7/jPGSncA6XaJgOPq
 JaXZaaZoHvgI7zXF/5aPpaIcf9o2S/Egs555oeuGL39QGdaoz1OWiGf+HR0FWPYCxEM0
 MvXIh8zR8wca659gNf1FAFnErV3DBTs24CJmVSe/pztU1Cm1YA9wTe6RlLx6dwHuEDSg
 t0ghv1eoogRHyTXhvf7UGEOphu9AQBJZnkEI80YRhGQkqQTz+6BSuLHQecleNsBS0he3
 UEIYTiQKeNm96AQBv+LHO8sGEIMTo/vbwBOeaIFt3LJfGLh2Kvtq2VcHzIqernmcHD0f
 ykZw==
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
 d=1e100.net; s=20230601; t=1749579436; x=1750184236;
 h=mime-version:message-id:date:subject:to:from:x-gm-message-state
 :from:to:cc:subject:date:message-id:reply-to;
 bh=Bw+tLGskk6B7PREOow6e0Ihjubrb7OEdhPjRjjxiwNU=;
 b=I5560SFKp57zcD7Umf6DXSyWbgMV9pG81R9NCIhsSGhV9deSZtRIKZQhuV9BEQi19+
 KVW2cJDytOYzLqFPPQ6cgrBtmTyHLFZ08ulGrzuFfjIZZ7f+zEkC7rvt2jdlJvFaPlx7
 1qBuJRh0d/jPTEFjuRHxc256HCh9Y4j683wAjgMH8eSeoOloArANjyTaiXLTPg89q5vv
 0jNwOESWu5xQmwcGYygw1hAY5eL1mM6jWjLkgxOAQG2Dy8R87b12/fB/+pza2DBQAapi
 +GK5IScElTKHIsZ2chyreDiAaYIeI1ScscfHkyDt47y/o6622dR8rvFhPRXEkD1p73mx
 Ojmg==
X-Gm-Message-State: AOJu0YyRVFuhem/NyGDpqPNKYBgzfPUUfkPdotcUtKbNbTHQOntmhMNE
 TY+c2q+fuT4e9pHWN2qNFt+q8SGuDjG9cb8WywYyELuch4KeGkfhYrfO+vMeQbQ8
X-Gm-Gg: ASbGncuqLTqIPTZHxRSHlXgXVhx9USVnh6/oflGIhXS1UroEL6DcL4t1CpOx0UH50nQ
 SHnDwydteZZJqvipbMXMlUKDaM/lPaZanUhlEn2/wNaKwP7YNh/2XxPTx+qC2XyZKXAd//upUQB
 t/1fUQrKxo8x4wTWTGl15bEk+VioPKSeX6KrAlIhB05KzlGvA1aY3D1bV5FAaAVy7O2qOFK95hq
 GmmIhllu3LukLM9bgpaK3gjf3+AQYYtpDOHPZhpvyEQW/HhDppq0sP+pvVYwhXGRSweD7Xpi7O5
 9jvhI9xIcuEGBHKVAkVGWl9BJGlxiY/DhrLp4q+O22R2G6VUTR4B0ZS0gqcBrqJ16nY=
X-Google-Smtp-Source: AGHT+IHpEqUiLLIwr/6G+ArP3OvX6jkphUg/SBeJUhk89qHKsy0qkBKo4YfZ/fZciY4lLTmj6t5VAw==
X-Received: by 2002:a05:6512:238e:b0:553:2773:f3f9 with SMTP id
 2adb3069b0e04-5539c1070b2mr211038e87.8.1749579435656; 
 Tue, 10 Jun 2025 11:17:15 -0700 (PDT)
Received: from localhost ([185.229.155.48])
 by smtp.gmail.com with UTF8SMTPSA id
 2adb3069b0e04-553676d0efasm1655211e87.24.2025.06.10.11.17.13
 for <bug-gnu-emacs@HIDDEN>
 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
 Tue, 10 Jun 2025 11:17:14 -0700 (PDT)
From: "Paul D. Nelson" <ultrono@HIDDEN>
To: bug-gnu-emacs@HIDDEN
Subject: [PATCH] Add repeat-map for calendar year navigation commands
X-Debbugs-CC: Juri Linkov <juri@HIDDEN>
Date: Tue, 10 Jun 2025 20:17:13 +0200
Message-ID: <uxsg7th60nlavq.fsf@HIDDEN>
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="=-=-="
Received-SPF: pass client-ip=2a00:1450:4864:20::12a;
 envelope-from=ultrono@HIDDEN; helo=mail-lf1-x12a.google.com
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, FREEMAIL_FROM=0.001,
 RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001,
 SPF_PASS=-0.001 autolearn=ham autolearn_force=no
X-Spam_action: no action
X-Spam-Score: 1.0 (+)
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.0 (/)

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

With this patch and with repeat-mode active, one can navigate by year in
calendar using 'C-x ] ]' rather than 'C-x ] C-x ]', for instance.


--=-=-=
Content-Type: text/x-patch
Content-Disposition: attachment;
 filename=0001-Add-repeat-map-for-calendar-year-navigation-commands.patch

From f9bbd97738b639372279aebdd0f1347143ac45d0 Mon Sep 17 00:00:00 2001
From: Paul Nelson <ultrono@HIDDEN>
Date: Tue, 10 Jun 2025 11:33:05 +0200
Subject: [PATCH] Add repeat-map for calendar year navigation commands

* lisp/calendar/calendar.el
(calendar-year-navigation-repeat-map): New keymap for repeating
calendar-forward-year and calendar-backward-year commands when
'repeat-mode' is active.
---
 etc/NEWS                  | 7 +++++++
 lisp/calendar/calendar.el | 6 ++++++
 2 files changed, 13 insertions(+)

diff --git a/etc/NEWS b/etc/NEWS
index c5172b40da6..f7720290f5a 100644
--- a/etc/NEWS
+++ b/etc/NEWS
@@ -2168,6 +2168,13 @@ is bound to 'C-l' in the calendar buffer.
 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 'repeat-map' for calendar year navigation commands.
+The commands 'calendar-forward-year' and 'calendar-backward-year' can
+now be repeated using 'repeat-mode'.  With 'repeat-mode' enabled, after
+invoking one of these commands via 'C-x [' or 'C-x ]', you can press '['
+or ']' to repeat the command.
+
 
 * New Modes and Packages in Emacs 31.1
 
diff --git a/lisp/calendar/calendar.el b/lisp/calendar/calendar.el
index c448955450e..6e69d76b201 100644
--- a/lisp/calendar/calendar.el
+++ b/lisp/calendar/calendar.el
@@ -1744,6 +1744,12 @@ calendar-mode-map
     map)
   "Keymap for `calendar-mode'.")
 
+(defvar-keymap calendar-year-navigation-repeat-map
+  :doc "Keymap to repeat calendar year navigation.  Used in `repeat-mode'."
+  :repeat t
+  "]" #'calendar-forward-year
+  "[" #'calendar-backward-year)
+
 ;; Calendar mode is suitable only for specially formatted data.
 (put 'calendar-mode 'mode-class 'special)
 
-- 
2.39.3 (Apple Git-145)


--=-=-=--




Acknowledgement sent to "Paul D. Nelson" <ultrono@HIDDEN>:
New bug report received and forwarded. Copy sent to juri@HIDDEN, bug-gnu-emacs@HIDDEN. Full text available.
Report forwarded to juri@HIDDEN, bug-gnu-emacs@HIDDEN:
bug#78753; 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: Thu, 12 Jun 2025 06:45:02 UTC

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