From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id WB2qMNa1YWfidwAAe85BDQ:P1 (envelope-from ) for ; Tue, 17 Dec 2024 17:33:11 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id WB2qMNa1YWfidwAAe85BDQ (envelope-from ) for ; Tue, 17 Dec 2024 18:33:10 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=fGwkyLoI; 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=quarantine) header.from=web.de ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734456790; 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=ASm3dlmQvGmozLJdhaWcw4jrNxPuamwb1CHUWz7F4ho=; b=L60JGBWzo40VwRcB+swFmfC7W1sswJwl48jRt/xawMTCUFB9lGSp/JC4yeHBBHWZNKTrlq NcKvsYho7SvffGfEWr7XppSTFr3w1zOhxm4bwgWCI8nZ072OWWs5poZSE9AIqcsP+A64V7 xRH5HT17e/XoRiwPIVl+6CXJP+QUh8/D8f9YfUZZ+MdebWsCVhI+il860nbQCmmrqVU/d+ D05p84VLc+lz3JFQ6Gawixy3x1cjlqrF60J35Yzm49U2KpDdfYMvxeYYfnQvhVhBGmBt3o b9vFPNre6EvV0qZyKL03QMywE1iBQ+31Y3e5Z0c0nQwbsPdPqjyrLjh4kl5ydA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=web.de header.s=s29768273 header.b=fGwkyLoI; 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=quarantine) header.from=web.de ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734456790; a=rsa-sha256; cv=none; b=d43TQDI79G242qeZTz43HgE7izzcAzWXrvysSvAiGSkMINE5AK2l5DMakAJUzVs18hg6Kl dOFlR6VSClawlEZLKvQ0RF+PH4XwcfnDPL3k1gzR2D7MBRTNWP4A8Il9fc8vMfjbIYZ80z 6+CqBXkJ1bu+af+6EUNg1c78j/EHusB9+Jx1GfwpjI8+azIHWrK4TlRh5Re3VCeNl6qZ3T Tk3M6Um/YL4Wy1P8cJHAzCCpl+6HvgjYs0ZELHxUf2pKpqsISe+hJh5Gl2jD4XASxl4jLt 8fs8xPyaVbr3MkdGuN6v7xIQPUsOeGEeuzGFPkEptwAfqeuZxdqcX/v4x9SKKg== 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 B05A085212 for ; Tue, 17 Dec 2024 18:33:10 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tNbQc-0005WQ-09; Tue, 17 Dec 2024 12:32:14 -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 1tNbQM-0005So-In; Tue, 17 Dec 2024 12:31:58 -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 1tNbQK-0001sV-Pd; Tue, 17 Dec 2024 12:31:58 -0500 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=web.de; s=s29768273; t=1734456713; x=1735061513; i=michael_heerdegen@web.de; bh=ASm3dlmQvGmozLJdhaWcw4jrNxPuamwb1CHUWz7F4ho=; 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=fGwkyLoI62HrfLiHsgMwVJDFEUwmRV1C7vAxW+dFL05Frs80OpXpH2SVUp9UUeS2 ClyihuSbb+WHXDHkTncDzKMx2z0MNJIi7BuzHbT8DI0jZHej3BBsOKJfPu1kFmBw5 /kXTG3bDwRnpsJMjJkWuf+buAHc7OAMfKta8xqBZme4rfaXYTO7G54cWgD50foYvt o72M01FV06QJwBVB8tZRXPLWZE3rOUMJ9NuASv5w4JHVeo7BlJlNxa3kMC0sL+PVD WjV+rZwdun1XDzn5v11jbxKxTI39TugggdQvoawko1EKcea7fo4W9GzmreqoVBXaQ jqd5eKnv1V3lwqYwqg== X-UI-Sender-Class: 814a7b36-bfc1-4dae-8640-3722d8ec6cd6 Received: from drachen.dragon ([92.75.138.197]) by smtp.web.de (mrweb006 [213.165.67.108]) with ESMTPSA (Nemesis) id 1MDdy7-1tG8mU0NJn-00FY3f; Tue, 17 Dec 2024 18:31:53 +0100 From: Michael Heerdegen To: Ihor Radchenko Cc: Nathan Collins , emacs-orgmode@gnu.org, emacs-devel@gnu.org Subject: Re: How to handle both minor mode and major mode remapping a command? In-Reply-To: <87r0691asn.fsf@localhost> (Ihor Radchenko's message of "Sun, 15 Dec 2024 10:48:56 +0000") References: <87r0691asn.fsf@localhost> Date: Tue, 17 Dec 2024 18:33:00 +0100 Message-ID: <8734imtdtf.fsf@web.de> User-Agent: Gnus/5.13 (Gnus v5.13) MIME-Version: 1.0 Content-Type: text/plain X-Provags-ID: V03:K1:h0Y9E54jNkcfbN9wCeMKJNT6+4t7hwt6MNH5vrqkPsQfii8b897 0Fqdg1RT7FRvBCbQG+pPmhdJauqNd+GbIYJyYH/8aVbQe236x6PLtF9aW1yZKMUAZfZjDF6 F/bYt17s/U41Lk6xMHgUOq/gJLl/lIH0puYkK4qFQEswsixPAkKKWMs3eCRcW0D864AM/Ar SzcB4gNm5vqSvyZwrFrQA== UI-OutboundReport: notjunk:1;M01:P0:VHy5QGfFRRA=;6bd+Wg2Dnv0kWCFto6gq4Ygq3Tu /169zkjJRh79flPIHacQkTwrrvUQdXNY5rl6NTnY2VilR93KP0qwmHf4NPOhRUVSsj3OWfCqg AWpbXHzD1JunUfiRSrTEXmnIaVOk6KDKXspDauUbqC2qmlSCu7UZCjF9Bu8d3v0yzSSHFMQS2 Pjqc5wdvidVjuk9jzli5SJh4fbskKkr4mjRzyNOO0c62fR83qB42XuKdJiRukEIb6PmlfT+MT pLhojFAtSmwqxQIou2IO0VO3JPHvYfooeb1jw6JeHBT42IXkB1VTZ3+dhufJ9LKjC14CbZ1JD jccLFKYsYpGiezas0FVhxePh89CtrlDPfywvqb8xWn04LJE08IyYsuIu3qar7xbwbkVK/3cdt 0OSWqBZwojankWeInzsYFIpUdmRMQrTbZspca4hq6d3D775S4MGZelgyJxiNvBvMycOUHf588 eBszyUf+XlfnsMw7+cuoKGe07DBej4Wx51JdhiLBRFE7sk9b3Sq16sexDD2MOB8PjS6cn9GMI Ts91Dlt6mRLZqs42SLNhY8oQg2lx39XLkzAv0QsFySTevl8646Vhi4ILjSYDO/2WaybxrcrhF kpuws9wBy3PI2z+4kGcrXgki9/IqMP802JrY3MmhnB5/ERQdsmMyukPUkg24w+NvYyJESvURG lqU2upP7+Aew8a2pUp0KGilyTFwfBybahsZb/E/8QubxMK5/A6ivjOB5JPj7K1SL8D0QTdjYj t/z6SdtvTonfaRjBENlm9xM7wPIxY651sXI4/hR20Dl349CW0CPuWWQQ8CI6RqGYN5LqEFWRs UrmylUN4wLz8GbJkG2+0CDi1yTtSJYI9sNJSP5OFs01LXRLHJvtFhCfaPCTY/d7fo45M3lWDU TP0cKriI/d3J989zXxxnTOHAdRSs8s5927eD/QjhfN0p46hy2E0W9S19bxV2CFd8hAieNF7MP Si1btmjMOkkKUcRczejmmvJ6VGEjqUpoK1WNjy0pN/9se7B/vtr1pWTpXALeQsaLypJ6OmKv9 bNF9vYX3wcgvfbchEHJrLT6cTysdeXmKUYqG3v7f+koFhaLFT2YrX7DnCyawhXXqp+VhsIgl7 JKa+1XOIM= 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: 1.87 X-Spam-Score: 1.87 X-Migadu-Queue-Id: B05A085212 X-TUID: peohQ+7u4a+T Ihor Radchenko writes: > I am wondering if there is some canonical way to handle similar scenarios > recommended for major modes. > > Any suggestions? Why not, as in similar situations, define a `kill-line-function' variable with default value `kill-line-default-function' which is a function (more or less our current `kill-line'). Any mode that wants to modify the behavior would `add-function' on that variable binding. We would have one single place where the thing is controlled, while the behavior can still be modified by future modes. `add-function' has priorities that can be used to specify which mode should win in case of conflicts. Michael.