From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 0PghGs+tZmc47AAAqHPOHw:P1 (envelope-from ) for ; Sat, 21 Dec 2024 12:00:15 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 0PghGs+tZmc47AAAqHPOHw (envelope-from ) for ; Sat, 21 Dec 2024 13:00:15 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Y9XgwSXx; 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=1734782414; 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=X3g/sC6XMZ++rXcGDAmvnwxey6R9M1rKHtvc9k+Mvik=; b=HmoogdgMEL/r42FPkXx6EDiNCjdJ9BrQf5uHbujeCDcVd4M5oz2+NHOu0QwUOe/b3u/7N/ 3C3RxSDAzbT82eJr24P/2qPlFRZU6FuzYr356wwbd9f7GJFz1wAdVsW8QBJt9kqmE21P4P K3Zsub9AuWL19tTOlGkltq9T0+HZZqXBIoyEyPFxpGqe2dJFkdEgaX2HFjzy3LfzvAwpX1 o3Mczmrc5qpxyHEmHg93U9+BcPm0yrMd9Zm+P41Nc/b7LFBgUrrKR+V9i/orp9XKocAhXQ 7rDbsNS1ZlrEkzXMqYkJEqFhgP8yGo0OnXDZObnEElMa320pUggVanm3gX5I+g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=Y9XgwSXx; 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=1734782414; a=rsa-sha256; cv=none; b=pMoWff4dMmeoVNvYTqgT2tSCHZMxywQ7kvpJSWEN5FrsqbfVaI3Vq8jyN59L3h1fY/Dn24 iT1+Td3owLaO6GPk/gR5PhHhtAs2HOFABCiHrDNHWAMUIyNj0kwLHhxncajsi0yOJv60Za ghXffs16PBuH3gzHcLCfiq/K9FSHXgqoe+/UW6nsl0PzPaHCyOxkKTL+wJr8n80OpYNKFp S5XLGGO0Rj5SzsTYZI74EW9S2DiP8AMIc/iEkW2h1puUeUCO1Sqpxiyt2dI3FKSFvs04zF p8iolhU/iDambadTbiIgBU+NGQT0tdsPIJGVk2A3C8zxqXryfGRKUrd5y5tuwA== 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 8F8F77AFEB for ; Sat, 21 Dec 2024 13:00:14 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tOy8q-0001kX-Vp; Sat, 21 Dec 2024 06:59:33 -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 1tOy8p-0001kH-FD for emacs-orgmode@gnu.org; Sat, 21 Dec 2024 06:59:31 -0500 Received: from mout01.posteo.de ([185.67.36.65]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tOy8l-0007Mg-VI for emacs-orgmode@gnu.org; Sat, 21 Dec 2024 06:59:31 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 15982240027 for ; Sat, 21 Dec 2024 12:59:24 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734782364; bh=Ulk3SM7CoqnkDkQOTjaBHgfAtqnzN0DMzRIu7uqaiMY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=Y9XgwSXxpKUTnF0zkgZgZ6cnk2IxS9haeWsXO9tAZQretuRXy1gS2UruEj+243uoT 1c+xuJaMrSwMQ0X8yt96xfgVuybmVmHTHazVJAEad+CiN52H63Y1Iki8RThFNsviY4 5jk3uZv7weMZlCYnNUzMk7TQPGrr1gR2teF4y/fLhov4Ydx0SEc0WZO27RrVcYwxtM XjZnwdOlyQGoT1nOfkPzv28kl2gN1I7vYou4aD4u9QISB2jI4ukMeula6TPg2kd1WQ M6+Tr0KAuJEQsZvgdxXFqe16QfZR23VjMEXxg59gRTiptRf6gMO2YaztHxG+TfLMsh sWfLpU8dFtR7Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YFjWH05vMz6tw3; Sat, 21 Dec 2024 12:59:22 +0100 (CET) From: Ihor Radchenko To: Michael Heerdegen Cc: emacs-orgmode@gnu.org Subject: Re: How to handle both minor mode and major mode remapping a command? In-Reply-To: <875xnfbh2g.fsf@web.de> References: <87r0691asn.fsf@localhost> <8734imtdtf.fsf@web.de> <87ikrf7ev6.fsf@localhost> <875xnfbh2g.fsf@web.de> Date: Sat, 21 Dec 2024 12:00:40 +0000 Message-ID: <87v7vd5jpz.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=185.67.36.65; envelope-from=yantar92@posteo.net; helo=mout01.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.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, RCVD_IN_VALIDITY_SAFE_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-Queue-Id: 8F8F77AFEB X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -0.11 X-Spam-Score: -0.11 X-TUID: eNkshs97AQYW Michael Heerdegen writes: >> 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'? My main problem with the idea of kill-line-function is that I do not fully understand how it can work in all cases. Specifically, imagine what happens when visual-line-mode is activated _after_ Org mode is activated. How can Org mode make sure that kill-visual-line does not unconditionally override Org bindings? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at