From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id iHR1EMnY5mYkfQEAqHPOHw:P1 (envelope-from ) for ; Sun, 15 Sep 2024 12:53:29 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id iHR1EMnY5mYkfQEAqHPOHw (envelope-from ) for ; Sun, 15 Sep 2024 14:53:29 +0200 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=J32R1uL6; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1726404809; 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=6jhAM3wuB+v4cejK+GkMPQk6P+AA3Tf0tJPsfnZQA8c=; b=cK5VruCIaQnz6urKv3OCWwFR8Df8aub3y8OOoX1eVJs26zmMU9y2nSm+29ZJfKOd17Cc4W 20JVa60/GKj05POVy6BmbjAMzgNGwu688AbXh/R/CJfxDFqbAMzS4qcA2n9GJVrpLCD92V 0NlLIEhbUXjujzZUrZVG5co4T+9NH21Omb0uz4FtMhgJJmYC62WBQZCWXXHJe8RHiHg6S7 AqQSXnxdDZgTyEHm8NY4Yl6H9XgJYSWzKn+9d2okcwcny9x3ICw2P8kyyMilWGcQhi6ewk 4cz/86m4gPFr737esYo9ttyjD7BIoplFvZMBBApp7IQia7w/IF/LdrilLTYz5A== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=J32R1uL6; 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"; dmarc=pass (policy=none) header.from=posteo.net ARC-Seal: i=1; s=key1; d=yhetil.org; t=1726404809; a=rsa-sha256; cv=none; b=llkyQG4ADV0MhpQlFXGVQipi/AF/YssHaTESREEQz1cYorgZLOSuWmgzENx2i4f3n3n/tR qrhcGDmfUn80j9PS9U+Q8XduBxgOhD9aS1owEjf2ZpFYkrem/FpIoNV4LXeJ4p4+sBt4Bo cJConRh2vIbUS+ybWiwmTDjsSYh58VT0a9e7cZPIE7gKI5ZKtPLOmHEydWID1LKL6Lph78 bVmo/iDsXxPh/a+N3erRWuH3y80ulziDCj/+GN6xwA5ugFju7lhgxZwDAIfO/BH/1+H7nC Gm+AqQkyoue7KQCRTmi7zmVqrL/TsgvN351nVaWdIgwD8ULAMyYQ5QqxY3lKNg== 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 2117472CE8 for ; Sun, 15 Sep 2024 14:53:29 +0200 (CEST) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1spokC-00057a-JY; Sun, 15 Sep 2024 08:52:48 -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 1spok8-000577-Pi for emacs-orgmode@gnu.org; Sun, 15 Sep 2024 08:52:44 -0400 Received: from mout02.posteo.de ([185.67.36.66]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1spok6-0003FF-R4 for emacs-orgmode@gnu.org; Sun, 15 Sep 2024 08:52:44 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 30AFF240103 for ; Sun, 15 Sep 2024 14:52:39 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1726404759; bh=r9hcSggl3bT9a4lE+Tal10U6myCEaw9G1Qv3BwwG5CM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=J32R1uL6I47+HX8Iks0IVBCE1Tnl0nDEf1Qu6+b6bQeXlcF5F/ip55o0yUAdO3+Q/ HFcbQUAI6aQ/lzo53v26MWxv9sV/WJh6fIcB/IlpTrDi1S2g82tvB6GZ5Lv5be7hQu iEuoyTnu9/XITxaYMtvL/uv+SALsseiE9SiBakF/WAfK3RrkVIIQB92MFt4WZKbpPv NRda3TkDWNBH908QJWBbXAGWnjz7vArlpnPDHdRcBiSYGiPKI/+6e8vxfsmbn7Y3wi LwKPRnDKYkY1H6h6zdCvPPbbPcbIxIY8FsNl9XtnMP/A1xB+HaHZwhghGMbjfTlokY HkdUhIiBs+OVA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4X67HV5gf5z9rxG; Sun, 15 Sep 2024 14:52:38 +0200 (CEST) From: Ihor Radchenko To: Karthik Chikmagalur Cc: Visuwesh , emacs-orgmode@gnu.org Subject: Re: [PATCH] Add repeat-map for navigation commands In-Reply-To: <87zfogxpal.fsf@gmail.com> References: <877cbkoqkt.fsf@gmail.com> <8734m8rcoh.fsf@localhost> <87zfogxpal.fsf@gmail.com> Date: Sun, 15 Sep 2024 12:54:13 +0000 Message-ID: <87jzfd3wne.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.66; envelope-from=yantar92@posteo.net; helo=mout02.posteo.de X-Spam_score_int: -43 X-Spam_score: -4.4 X-Spam_bar: ---- X-Spam_report: (-4.4 / 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_DNSWL_MED=-2.3, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, 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: -5.31 X-Spam-Score: -5.31 X-Migadu-Queue-Id: 2117472CE8 X-Migadu-Scanner: mx10.migadu.com X-TUID: y0j3SW7Nvnyy Karthik Chikmagalur writes: > 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) Looks reasonable, yes. -- Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at