From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id UB0sIPei32ZvYwEAe85BDQ:P1 (envelope-from ) for ; Tue, 10 Sep 2024 01:37:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id UB0sIPei32ZvYwEAe85BDQ (envelope-from ) for ; Tue, 10 Sep 2024 03:37:59 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="Y7/A/9G1"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1725932279; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:cc:mime-version:mime-version: content-type:content-type:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=4K/3g45Xk/UvFKJY0xcpz8fpFECVT61kFN4+ncWU4rM=; b=E8o9nL7+GG5KC9uUplPcS77QXy29vRJT3SkH8VEynbJ1fLzHH++Wll2eKJVygh0WZtZ7rT zGl4Ma8nQF6DBAhFf/d0MbV0S+hsV+OdcSXE6M7pfjcr1sGQRkn0VV+paS7Pan+xtYZ5WB VXeAekDFsZ1l+Y4vLZzI6MUaqw4jnH+SCVgrehndeTJ9RvNY6GKUnVKKcka8PV5Hr1UZ2K XkPSnnuYGSbEt8BRgq2ta2ZmxnZ7kFO3Us79ksPX+TeRwG5OedHZTnMhDV3KMlngq5iQvb jvD1LJcg1gyD9D3xhO2laBlVFWYQJ5TUiIun+7XN8UEtXWRok41LmP+tMT9xwQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1725932279; a=rsa-sha256; cv=none; b=rg2L6IO0jYnH4ZBCDOoQdzUzCw6R+FdTmPpIo45hAXKdyyX5b+FUSOgDa8iZYlh0E74RiV WuBJaT2d3sC+Gf912I0wBMOsRiWc8ky3BxEW9QClo8OsKNYsCXrt96Cybfj5IOQYd8fNbw iTqMITSYn1T7m1lF1n52T+mR8HeajXWfliR9+FtJ+DRApj+CubH/6z7UMwGGxVcBrCSLwG +KRKCXuzzdFyLmL9T/B5RkoYcCc4mZQcrKb2DXBHWhQMMvvtfErzYeMGdCUeLxoFbrfd2E oC+mxvljjXdH5ExOwp8XQ3inQtaFw5qrjhTObMhdIcbGsSl+ayP/eR3N0ShJFQ== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b="Y7/A/9G1"; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of "emacs-orgmode-bounces+larch=yhetil.org@gnu.org" designates 209.51.188.17 as permitted sender) smtp.mailfrom="emacs-orgmode-bounces+larch=yhetil.org@gnu.org" Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 53FEB86D4A for ; Tue, 10 Sep 2024 03:37:59 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1snpoO-00088V-MW; Mon, 09 Sep 2024 21:36:56 -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 ) id 1snpoN-00088J-GI for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 21:36:55 -0400 Received: from mail-pf1-x435.google.com ([2607:f8b0:4864:20::435]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1snpoM-0001Co-20 for emacs-orgmode@gnu.org; Mon, 09 Sep 2024 21:36:55 -0400 Received: by mail-pf1-x435.google.com with SMTP id d2e1a72fcca58-7179802b91fso3072283b3a.3 for ; Mon, 09 Sep 2024 18:36:53 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1725932212; x=1726537012; darn=gnu.org; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:from:to:cc:subject:date:message-id:reply-to; bh=4K/3g45Xk/UvFKJY0xcpz8fpFECVT61kFN4+ncWU4rM=; b=Y7/A/9G1AQG8eqcAhEATbGhOwPXdl3AP0/httIisj38KmtyH6RtWKXMnfbCxwevTU6 b8EGRQhecarfRifTyns32/+JQWKDTqTI75PVeS4B6hfr/7LP+AGwYMswFlat6FEGDNiZ SirJkpgaUU5/goR6FkRN7A8gZ8PcCn2kFrZIRTmCQFsX4zSXdfnfn7jy2C6BJOaip3ar vJMw/wRmfBmffm75GopEU493KRqEL6xWGDpmORTMrrEg0ybscVnMypPxVaGKi+7fxm1p ICPtBWzQjpm0oBo16KRtQlqbEkw1YNrYRYB4nvJq4ut3WP02sXDIRCT7DOerSSm1+43I Zx6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1725932212; x=1726537012; h=mime-version:message-id:date:references:in-reply-to:subject:cc:to :from:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=4K/3g45Xk/UvFKJY0xcpz8fpFECVT61kFN4+ncWU4rM=; b=W3g/Ec+xehSskrFE0Gv8q7Jds4/mBVlLBZudDKn6X6d1sioYq1Ts72SbS6U8ewx1a5 0lISW0M+DLXVmnk7ZQkmwm016XGStWuhRPmii2fa+aBDtJIY/jGkOXPFczYvg5lWfw7a s3oI5hy4H1rfQXQVC+zAWlz8QIcrSlLTRSBU3CS9q5ZAhLp++QdkHR+sk0HqZeuSpYT1 Zi4TYV6j4rb46z3nqg9iojKBBGrX+4dNa3FZCGIsDsG4wKxZnehZ6ZLkT0xZu9okbR1E SdVBqlpj7xlIs3abBJDSdoke1M0OaDYqlZjTQbDL3Q5fCRydAK3uJ0tktlU/Xd2A0iD1 ziJA== X-Gm-Message-State: AOJu0Ywf7R1rLNn2MsHkDNFn6qHlDu6cB5Y8qBmwUtzbgE6uhmPnFsKH rj5XMSKBAUYwPw5klqpm8cZyZZlIB2/acIclG1i4h6D2vksPWz6C X-Google-Smtp-Source: AGHT+IEW5jy+dVzez8JTYgOcCAKFm0joojNXqJzvJFFYriY7l3xdRCEH7+NA2XMD8OyxxZ4oxIGiZg== X-Received: by 2002:a05:6a00:4b4c:b0:717:88b6:6b1e with SMTP id d2e1a72fcca58-718d5ee3fcamr12989660b3a.18.1725932212100; Mon, 09 Sep 2024 18:36:52 -0700 (PDT) Received: from localhost ([2600:8802:5726:2500:ebb1:a35e:e5:986b]) by smtp.gmail.com with ESMTPSA id d2e1a72fcca58-719090952afsm341952b3a.104.2024.09.09.18.36.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 09 Sep 2024 18:36:51 -0700 (PDT) From: Karthik Chikmagalur To: Ihor Radchenko , Visuwesh Cc: emacs-orgmode@gnu.org Subject: Re: [PATCH] Add repeat-map for navigation commands In-Reply-To: <8734m8rcoh.fsf@localhost> References: <877cbkoqkt.fsf@gmail.com> <8734m8rcoh.fsf@localhost> Date: Mon, 09 Sep 2024 18:36:50 -0700 Message-ID: <87zfogxpal.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=2607:f8b0:4864:20::435; envelope-from=karthikchikmagalur@gmail.com; helo=mail-pf1-x435.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-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: emacs-orgmode-bounces+larch=yhetil.org@gnu.org X-Migadu-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.81 X-Spam-Score: -6.81 X-Migadu-Queue-Id: 53FEB86D4A X-Migadu-Scanner: mx11.migadu.com X-TUID: cWT31rlvVKVW >> From 8b980efcd9497e395f4d82a1304267ae4426b00d Mon Sep 17 00:00:00 2001 >> From: Visuwesh >> Date: Mon, 9 Sep 2024 19:46:47 +0530 >> Subject: [PATCH] Add repeat-mode keymap for navigation commands >> >> * org-keys.el (org-navigation-repeat-map): Add repeat-map to make >> navigation easier when repeat-mode is turned on. > > May you also add a news entry? > Ideally, we should also document this in the manual. Do you think it makes sense to add repeat-maps for other next/previous commands in Org, such as org-next-link and org-previous-link? I've been using this for a while (they don't use defvar-keymap as I wrote them a while ago): (defvar org-link-navigation-repeat-map (let ((map (make-sparse-keymap))) (define-key map (kbd "n") #'org-next-link) (define-key map (kbd "p") #'org-previous-link) (define-key map (kbd "v") #'org-link-preview) ;toggle preview for link at point map)) (map-keymap (lambda (_ cmd) (put cmd 'repeat-map 'org-link-navigation-repeat-map)) org-link-navigation-repeat-map) (defvar org-block-navigation-repeat-map (let ((map (make-sparse-keymap))) (define-key map (kbd "f") #'org-next-block) (define-key map (kbd "b") #'org-previous-block) map)) (put 'org-next-block 'repeat-map 'org-block-navigation-repeat-map) (put 'org-previous-block 'repeat-map 'org-block-navigation-repeat-map)