From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id 8PZMHElXXWefIQEA62LTzQ:P1 (envelope-from ) for ; Sat, 14 Dec 2024 10:00:41 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id 8PZMHElXXWefIQEA62LTzQ (envelope-from ) for ; Sat, 14 Dec 2024 11:00:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cEunN0ga; 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=1734170441; 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=ka09ROk0cr6xK+86R2PflSVvmawP2l2N0WjpfQyfl5Y=; b=URmyZ0F0R2UM4E3pa+gy9v4BA0wACmvQKJhuuJy7Pt49xEGanCMdqM3Y3RHnj0x4Kx6KiT Y6SHvVOzqJN7KMZTzyvprphKhDhrWZhGIOfHDGOqQQfQBmbvh9322EEFU/1t/fzs+Q+OLC Uan7c4aFB2piBDm5N3KBUC/nCwFiv8CKCT03Zz0eXmYHpHLVZflbcIE3OOHkpuQiTuyI2m CQ+Afsj6pQSNPnfv0UYYDH9oanaO9XkARtj+NEAZZFyDV6b7WRpgig2W2Mke9TQvtWvNfM ym3/tmpiY82czbNMq30P0acM+G5n+2Ahyac93uLZpSsV5KSg5ADPM4sqVp9r/g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=cEunN0ga; 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=1734170441; a=rsa-sha256; cv=none; b=QpHl9ssL2C6lvMU9royicA5IVYsmh7yLAr3RPjEKkU9C14pmMSqu/B3vwCIaDMj8YJZbwq ceoNCbzLm4lk5NYWe439Yw1FUmV77zrb1l3J3TEA+DFrvpZDbZ2IDl8mCgubMuAW5CUKew mF5gUj18dgaUTUnZXKkHwvadgWfE0ZID7BQYIBN0lQlD8VGhEpKKKBwEVEmaXeDkqDMySy 5qqTdsEgpgdagx7oT+d6Sg0rEzH0MWMXILxsYWG2U2DWNPSjKVsLN4x79Zw4ZtZGUPrKGq 4Zm2V2EQ+RH65wWRSYZJkg5jO6lC47BHQLUzvq/Tq2/Rlhy3eM05ax4XrgUIwg== 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 5530189343 for ; Sat, 14 Dec 2024 11:00:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMOw3-00065K-QB; Sat, 14 Dec 2024 04:59:43 -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 1tMOuw-0005Kj-Ut for emacs-orgmode@gnu.org; Sat, 14 Dec 2024 04:58:34 -0500 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 1tMOuu-0006t4-5Z for emacs-orgmode@gnu.org; Sat, 14 Dec 2024 04:58:33 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout02.posteo.de (Postfix) with ESMTPS id 0DA38240104 for ; Sat, 14 Dec 2024 10:58:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734170311; bh=j+qp0Ik2qKzSdmW7hunwM4V2VU3Bu+/CpHmhZXSYp9U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=cEunN0gaueAl1MWaUIHW2ZcRJBWYN+IlVSnTFwFskWUwFwkEgQFpzb/gWjH0CZq7+ 95alWXOa3vt9lYLpwMueYH9wPONGY/3qBMKr1SAvXgbZ9B60Kaf3/kGuJt/2YjKfG7 4qtVr4DIWOmiyybK9oFi1eJ9/qjcHkTxhHkws2BFc2xJX85m13bWzLQH5nvCia/wi7 +7CQ+kBEAaeNqeHYQTEuThBsJsrFUHPtqARm6v3DWxS5J33Viv5Q+mVc41pCoOjG6W pVH7Ip7IC2OrzVV1+3wtC6nZBMOAoHjRuWzEFE22BV/kP7Zjwc7Q0TfNjOmgyxOPhT 2jr+19kcXNV0Q== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Y9M920KD0z9rxG; Sat, 14 Dec 2024 10:58:30 +0100 (CET) From: Ihor Radchenko To: Suhail Singh Cc: =?utf-8?Q?Tor-bj=C3=B6rn?= Claesson , emacs-devel@gnu.org, emacs-orgmode@gnu.org, Philip Kaludercic , Omar =?utf-8?Q?Antol=C3=ADn?= Camarena , Jonas Bernoulli , Juri Linkov , karthikchikmagalur@gmail.com, Visuwesh , charles.choi@yummymelon.com, Justin Burkett Subject: Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? In-Reply-To: <8734irb383.fsf@gmail.com> References: <8734m28l9a.fsf@gmail.com> <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> <8734irb383.fsf@gmail.com> Date: Sat, 14 Dec 2024 09:59:59 +0000 Message-ID: <87bjxefuu8.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.001, RCVD_IN_MSPIKE_WL=0.001, 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-Mailman-Approved-At: Sat, 14 Dec 2024 04:59:41 -0500 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: mx11.migadu.com X-Migadu-Spam-Score: -0.91 X-Spam-Score: -0.91 X-Migadu-Queue-Id: 5530189343 X-TUID: VBVFbDON6gos Suhail Singh writes: >> For a given Emacs "prefix" command (e.g. org-open-at-point), we define a >> set of customizations: >> >> 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) >> 3. Layout settings for the specific interfaces. For example, transient >> layout definition. > > By "display string" do you mean a description of the action? Or would > that be additional? I mean some way to define how the action should be displayed in the menu. It may be a full string or just a description to be appended to the action name, or something else. > Hopefully, the description of each action will be a first-class member > of the "List of possible actions". Or is the intent that the > description be taken from the form representing an action (e.g. a defun, > a lambda etc). Using a docstring sounds like a good idea. But it is a bit early to decide these details. I'd like to discuss the more general design first. -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at