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 OOv0AMt1ZGc6BAEAqHPOHw:P1 (envelope-from ) for ; Thu, 19 Dec 2024 19:36:43 +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 OOv0AMt1ZGc6BAEAqHPOHw (envelope-from ) for ; Thu, 19 Dec 2024 20:36:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b="Vkm/yXaK"; dmarc=pass (policy=quarantine) header.from=web.de; 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=1734637002; h=from:from:sender:sender:reply-to:subject:subject:date:date: message-id:message-id:to:to: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=mmkCsM8czY12GhTS+FAgOCPOh5joQ5bd5ryiQXEpefA=; b=B9O3WVKQjOXZ6C4eqXQJvGnQc1/Bt3U4VQNt3yf/FmlnwL/l1QpKDIEHaJPjVR/3COQfSx vqPuinn6t5VOLdwbjd81ud/OyoXeB7kW8IGpt02J8Io0EAeEOJ8c2hYrOKg6X1TDj9E3Vy ecnyr18F28OXWrTxAoaee+3IikjAXvKsXIRVXjUb9lhCwIsZVarqTSahu4QIOy4sxMOub7 +h2BBh9lurcZH44V2ypVpK5dRI6xKf7c6EiZZDTG1uas5rhaWXV7Gh6aWjes/TRcQ1eNRj uIDa6OtE6zf/lIF4Q6kYKT2Ha+xtpH8j8oSIGzUR6lpkxvF6+neGXP/gk5upvg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734637002; a=rsa-sha256; cv=none; b=kHaZtplnZKvVoHevn6TgIqwZ9KQM1XOIltoNXGHtL7aD13F8wkzbLhBvmFCDXCoJTBcGGj RbWkEvWdewIapSR3mfAPfjeyJTEWe8UVCNaTDFDISlKfmNl0c4gzZwJQV5P6lrLYybbsBi +o3pRVCUKGLTnZgdChD8o5Io1g4v25fg0rOqXYTnWQ3P+PTowBoDni/umx0bh1CLYGLHIQ JjMzcqQC5E75/2wjK0bW2r5ep2Ij6etPxWFcDYcJz+KBLP4xK7uYLfHAPbrwohVrhx4Fgk 9KcrRmDdpXKj0CBlSH+byt0PyiUhSy+LVIUy7533Qzf44uPZPHFfwvJ4mMj1Kw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b="Vkm/yXaK"; dmarc=pass (policy=quarantine) header.from=web.de; 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 A19E51E49D for ; Thu, 19 Dec 2024 20:36:42 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOMJR-0003SF-K1; Thu, 19 Dec 2024 14:35:57 -0500 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 1tOMJP-0003S6-78 for emacs-orgmode@gnu.org; Thu, 19 Dec 2024 14:35:55 -0500 Received: from mout.web.de ([212.227.15.14]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOMJM-0003Fp-Jr for emacs-orgmode@gnu.org; Thu, 19 Dec 2024 14:35:54 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1734636950; x=1735241750; i=michael_heerdegen@web.de; bh=mmkCsM8czY12GhTS+FAgOCPOh5joQ5bd5ryiQXEpefA=; h=X-UI-Sender-Class:From:To: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=Vkm/yXaKapSwKhugvoZ1s6ixxVF2lBFMQ0nDRffNbKIDNE1xYHrDFXM+x/J45m/t /XcTaiJlZB+TJvcPE34wBZpyv60RovdSeMa9QW6TOZWok7vovlCmZQf9KJN1hEsXr 4VTjTcw7Cvyr+rhlFmiCLe5By4fRFg9YWTCfkiz2aOGx+KK5ximc4v2IVcyr5HgFT JS8D41W1pJo6HRec3hbP5fNQjKFoa1CGiXZVrI1DD6DFHfiongJFGgBqex36DCnbt q1jQQZ9K9vuo2TFOC+TIiJw6TcIGncMmLGuG4S2YcNK0T75M0v6upldt2llUrguz6 bRw6MQKgyCMGy3MR4A== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb005 [213.165.67.108]) with ESMTPSA (Nemesis) id 1N6K1l-1te3cV2KmP-014rir; Thu, 19 Dec 2024 20:35:50 +0100 From: Michael Heerdegen To: emacs-orgmode@gnu.org Subject: Re: How to handle both minor mode and major mode remapping a command? In-Reply-To: <87ikrf7ev6.fsf@localhost> (Ihor Radchenko's message of "Thu, 19 Dec 2024 17:38:05 +0000") References: <87r0691asn.fsf@localhost> <8734imtdtf.fsf@web.de> <87ikrf7ev6.fsf@localhost> Date: Thu, 19 Dec 2024 20:36:55 +0100 Message-ID: <875xnfbh2g.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:flikbSxLAm9V6776jGhdI1Lt3LcUqPQzc5gvTDPdiQY7SmSRJ4L EZHa78c2qObrcpJWscXLkVg4hFrWdcFpiKBtlE1r2lNTlJUl1aAYA3aWJlspz4LogJKm0zQ m8Hj3zcntfIBUXOVZQvMFwxBQcIEMQMXJcJgXKIC6dyuP9E1FADw2lPirkJmrAo555C89Q/ 2Djh3otbxI5VPVAfolV3w== UI-OutboundReport: notjunk:1;M01:P0:iPpYf8iJMIM=;97zHcQTeFgTc6WlC0t3rWslfE3+ GJZ1u4Fs2crVyIUrEV2QrQa/bAm8t+ZRWipympMfIr7eF/m3NVoWhNyVit968REBJKFH3ZQeI ffV5lwLO26v7kWlkKnPW3mrtuKO+CA2n0tTEUUbKW4pNXz4eANqD4cuHWtNLstQPTFXGWIC7d 6IbhKrDW63QyTYT+A+8HJ6P1oBSsfWxP23GTMf3diHemmmbRAPLX5WbjaL8n56hv0LTGOPhDw W7QdXjhXq/OUMum8NRvBSaH53SHDqOI7hzz4zqnYrH6VUW2s8PwZU4CPzINE59kj93fKfG60/ KSoJSkAbOaJIY65GBSwWwTO5sLtBRqw9q/p2GaBxoy3UoeC7A8Gq2KXyqeoAHfX3Wxh7wuNL6 HHTJFTNBnTealeFrn8DOr1TXBywqA2LZp1Y+c0bKX0WqEqTG/zDWtUwRbqmaENpnmIYnHLmn+ kvpoEstzLWMBL2RNht6jIgvyMzsgVeQMHyINkKqJsv6IkR5mvzZK/Nh1Id17NMDXcs2ztaDNS 3Q1wCNWDoK/IVg5e92y1XPEm4WI8zxopaH/RGZjoqXaxXAX7r8rqyq1TrI3pMXsDgNFBcPnOR k0gh0xkUWs1Ex0GkjcBLvvyZ5nPGU4cYCxMJRKu2ss8PfsUCT5GetaGlhuVWvsA+/MGy7gm2V riGjg8ZccCKLVF42uBUbc+6rPznLcD5BbtgqLodPloW2U6bUPORzzKPibF+9eMhbUKFLlV5Xr Ld7grM79kznOg5OOuSi+wdQw5iwVHPp169mLJXiKsCJUfrUQr150tumuJDsyHowIP0WKMdNcO FiQNj7QMNV2ekm1hiKgSrOHz/XowtQrFRZlgwCq/AETjmbkX23iMe5q4j9sIwHe+pn+7pf01u Vh0UOjetFna0V4wgkUn6yRHy2aiR2+YOykR6riwF170U3TdVJZtDzN0iBLRN6gqGvgKI2ng8L 7tlifGdKp7sfGZk2fD3O0x83fOSIH5gf8pTo8hgDAim6se0G7K581zySLkKufLfj4aOgwFoad dCnzYqQ70i1S8w73KNxeWwDu+GsCxZyF9tI3NQXUcAPNym9bew822pPhSExRpqJVQRRoATKGr 2CfC65FEE= Received-SPF: pass client-ip=212.227.15.14; envelope-from=michael_heerdegen@web.de; helo=mout.web.de X-Spam_score_int: -38 X-Spam_score: -3.9 X-Spam_bar: --- X-Spam_report: (-3.9 / 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_LOW=-0.7, RCVD_IN_MSPIKE_H2=-1.116, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, 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-Scanner: mx10.migadu.com X-Migadu-Spam-Score: -7.80 X-Spam-Score: -7.80 X-Migadu-Queue-Id: A19E51E49D X-TUID: Oi5M5R4mY+7N Ihor Radchenko writes: > That will, of course, work. However, I feel that it will only solve this > exact problem, but nothing more. > > Just in Org mode, we also need special handling of > `move-beginning-of-line' and `move-end-of-line' for visual mode (for the > same reasons). Does it mean that we need to introduce yet more > "*-function" variables? It will not be scalable. We would factor out the common part (whose semantic changes) and make that the thing that `add-function' would modify. A function value that returns the positions of beginning and end of a line when called, something like that. > What I was thinking about is some way for command remapping to: > > 1. remap overriding minor modes > 2. be able to access commands (possible remapped) that are shadowed by > current remapping > > Maybe what I want is advice flexibility for keymaps. (not sure) What would one be able to do using that imagined mechanism that one cannot do with `add-function'? Michael.