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 CGlFIazKXWeSLgEAe85BDQ:P1 (envelope-from ) for ; Sat, 14 Dec 2024 18:13:00 +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 CGlFIazKXWeSLgEAe85BDQ (envelope-from ) for ; Sat, 14 Dec 2024 19:13:00 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=none; 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=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734199980; 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; bh=D0cDK4zl35/gOmjJoKXPVgzNVSL8i1lw6BeRTxRwB34=; b=Q5QCgfNp87bB1DnEAMIXeDC+xEcWoIg4uQqfDLjN7Ou1oDVLXb4j21vMMol5rhVTGHbpa6 1/SJ7HFr2bjOAi/i4a++5lO9wTx/z+bwW5uM5BhiWAdNZ/iIpd39Kfxyehp27tZPYuetFZ mXz+s3iFNsospYqayXbR5OWYXU+RC8w8mnkn0uWnyvY0MkyDfp9IbDoZHZSC1bnvShng7Z NARG787QWQCvz7h2CliZ5J3LqoAPmK7e2+XgqevTr++36LJNUCLmeG9VqMmV0MBxQ4TO6k sjWLHcDglUabdxroWYuDeu5oMXL83N2g+mbTrrqMAuGIgNuKQRGCDT2e/hDhCg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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=none ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734199980; a=rsa-sha256; cv=none; b=IrSo/PUdFBHW/u1aX5rQEBpTsJzQHSD5GqNbM6yW09j5U2vvjqO71ef5ySngrEUq18w5MT D3ol3gtt6EPKUk/CM0FHFafXZZnjZddcEcIPbK8KlJVICTI34WUah4O13wkHQwVt8ROz6W fD3duxJNnXnNdlydnbo0Pc1ZCWWsD9wZQqh2QTUARkdZUrWw/wWlciN/7BTEAsqaEEZEbZ YKvIO4leGSPjs5yiA+VnrSa6HMrpcq93JO8NFusBkrt6q15q4VhmeucO3GHYd8YbYQGfi5 9bdrOua0gTz4mMTwEQG6W2inpkQAWEDoPc6JQ8cRqYfOf87MTKKp3PInG7PyKw== 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 697297ECF2 for ; Sat, 14 Dec 2024 19:13:00 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMWcJ-0001hU-W5; Sat, 14 Dec 2024 13:11:52 -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 1tMWcF-0001ge-Nd; Sat, 14 Dec 2024 13:11:47 -0500 Received: from relay2-d.mail.gandi.net ([217.70.183.194]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1tMWcC-0007XF-Gm; Sat, 14 Dec 2024 13:11:47 -0500 Received: by mail.gandi.net (Postfix) with ESMTPSA id E7B9040002; Sat, 14 Dec 2024 18:11:36 +0000 (UTC) From: Juri Linkov To: Ihor Radchenko Cc: emacs-devel@gnu.org, emacs-orgmode@gnu.org Subject: Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? In-Reply-To: <87msgzh1dh.fsf@localhost> (Ihor Radchenko's message of "Fri, 13 Dec 2024 18:41:14 +0000") Organization: LINKOV.NET References: <8734m28l9a.fsf@gmail.com> <871pzte929.fsf@localhost> <87v7x548ri.fsf@gmail.com> <87y120daue.fsf@localhost> <874j4m9ep6.fsf@gmail.com> <87h68gfqj1.fsf@localhost> <87pln3f3cc.fsf@localhost> <87jzd9ojj0.fsf@localhost> <87cyj0ajm9.fsf@gmail.com> <87zfm4s50x.fsf@localhost> <87wmh8s358.fsf@localhost> <87y11nwp9z.fsf@gmail.com> <87v7wd9a2h.fsf@localhost> <878qt7fbki.fsf@gmail.com> <87o71jwdxz.fsf@localhost> <87wmg6edr0.fsf@gmail.com> <87msgzh1dh.fsf@localhost> Date: Sat, 14 Dec 2024 19:53:36 +0200 Message-ID: <87frmq6ufj.fsf@mail.linkov.net> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/31.0.50 (x86_64-pc-linux-gnu) MIME-Version: 1.0 Content-Type: text/plain X-GND-Sasl: juri@linkov.net Received-SPF: pass client-ip=217.70.183.194; envelope-from=juri@linkov.net; helo=relay2-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001, RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=0.001, RCVD_IN_VALIDITY_RPBL_BLOCKED=0.001, SPF_HELO_PASS=-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-Queue-Id: 697297ECF2 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.32 X-Spam-Score: -4.32 X-TUID: kovK3egj7XL4 > 1. List of possible actions: ((name1 . action1 props) (name2 . action2 ...) ...) > PROPS is a plist defining extra properties like key-binding, display > string, maybe something else to be used in the future. > 2. Menu interface to use (transient, context-menu, embark, which-key) This looks like the best design. Any part of the org buffer could have text properties with a list of its available actions. Such a property could be similar to 'context-menu-functions' handled by 'context-menu-map'. But since it will be a plain generic list, it could be transformed to any menu interface such as transient, context-menu, etc. To transform it to context-menu, org-mode should provide a function like 'context-menu-minor' that will create a corresponding menu that will be added as a submenu of the default context menu. Such integration with existing menus would be better than the current implementation of context menus in org-mouse-context-menu that completely replaces the context menu with its own.