From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.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 8F8zEwPZX2fxSwEAqHPOHw:P1 (envelope-from ) for ; Mon, 16 Dec 2024 07:38:43 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:58f0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id 8F8zEwPZX2fxSwEAqHPOHw (envelope-from ) for ; Mon, 16 Dec 2024 08:38:43 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fernseed.me header.s=MBO0001 header.b=DxxyMaMs; 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=fernseed.me ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1734334722; 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=gVry9zsG+uf/ewHpBJMp8ZJRmIzxh8jLUwKyq6leFZ0=; b=tAdrmN69h3t8LGo3NhqwnHfOAHCBOP/WlV7KFuQ0VuBnl+G9PnWlP321uxJL3Zug1ag2oy 7nxIW3BQ1KV61e/A7v9mPl0VqdMZrVQqHRXDe2ehzhSKNR79JimFukAPzN+yYHUMtymUEt QGfFF5+wCUyum1DY1XkOQm7L6o1hx/o+NxeYhrPMG7OpYsek0tnlY2T77G96k5jnPWsSwu J8+phAGyCbqd31LrlzssEd4bQ8hUjpYi/iOVS0rxfi2dUCOo8FDLMKJdu8dmjawtnbPDuy 9ipgr/RBarmhmt6ki+wTth5qWCp+FapHCBh0cLDS48v27I9aknH3w31uFJrUWw== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1734334722; a=rsa-sha256; cv=none; b=pV8YzOyLQa+qzQiBMbnJSjPW7Ez/275McE9EFxOoYqh/wdeEsbPFhPOEvySbylk/RXamF9 GSZDthGTOBCdPtmA26F0zSZTcCpfRGTnl0zd8N/wElwnQjttgZE5BPC773FC69gqzVkJvc Gqaf6FXh/NiuupHMu0nHpBHeIhQTrS5AMRnSVloaDsFhX8AsI2eQq5WALGuqtrEeULJMMM Y1WKjHARRrQ+T5BO/LfawSf3kM1PtemFpOp7052LKgEpfpMvcP7YbA8Ez/FRw8kqdAcGKR +WxTHRuGz66iWmCGTksV1HM7zHjkx53PiNiZeEJ4c5PhprYn+VptvEpgCnhi5g== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fernseed.me header.s=MBO0001 header.b=DxxyMaMs; 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=fernseed.me 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 054647C0DD for ; Mon, 16 Dec 2024 08:38:41 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tN5fc-0000zU-DG; Mon, 16 Dec 2024 02:37:36 -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 1tMtHO-0000ci-Fm; Sun, 15 Dec 2024 13:23:46 -0500 Received: from mout-p-103.mailbox.org ([2001:67c:2050:0:465::103]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_CHACHA20_POLY1305:256) (Exim 4.90_1) (envelope-from ) id 1tMtHJ-0003y7-Mt; Sun, 15 Dec 2024 13:23:46 -0500 Received: from smtp2.mailbox.org (smtp2.mailbox.org [IPv6:2001:67c:2050:b231:465::2]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by mout-p-103.mailbox.org (Postfix) with ESMTPS id 4YBBKH3lpCz9sVN; Sun, 15 Dec 2024 19:23:31 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fernseed.me; s=MBO0001; t=1734287011; h=from:from: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; bh=gVry9zsG+uf/ewHpBJMp8ZJRmIzxh8jLUwKyq6leFZ0=; b=DxxyMaMs/J7ozv+FCEodFItogPhKKQgj1kikeGw3i4+IrPIJPeHi6nFceHXNiJb2YIevbE OK/K2vzvIv1dSv2Z/VEu+DwO4/3J2uTDvGJBz7BeXkDmAQtcPT2VuxpbOMmwInvgt6La9D 20C8jp45qJXNfoR0gu6DiPk5MNNKMlUpYi+XwRH0NOUq/a6pT7VvwPfxkozAKmsJPWgb/O eDhygrZmzd0ptJBCeMaH0sjcyjQ4Dq+C9xxLhGrsoYO6uf4OTY39WZ6soopUXYHbt29dYA G4gqtYM5s3brrEMV/7RoYL3pslVFisE1HOHpQFF6u+ZoBpV2Bh0tnT+5zKOsbQ== From: Kierin Bell To: Ihor Radchenko 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: <87msgzh1dh.fsf@localhost> (Ihor Radchenko's message of "Fri, 13 Dec 2024 18:41:14 +0000") References: <87msgzh1dh.fsf@localhost> Date: Sun, 15 Dec 2024 13:23:23 -0500 Message-ID: <874j34st44.fsf@fernseed.me> MIME-Version: 1.0 Content-Type: text/plain X-Rspamd-Queue-Id: 4YBBKH3lpCz9sVN Received-SPF: pass client-ip=2001:67c:2050:0:465::103; envelope-from=fernseed@fernseed.me; helo=mout-p-103.mailbox.org X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.8 / 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_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-Mailman-Approved-At: Mon, 16 Dec 2024 02:37:35 -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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Spam-Score: -6.49 X-Spam-Score: -6.49 X-Migadu-Queue-Id: 054647C0DD X-Migadu-Scanner: mx11.migadu.com X-TUID: pvEV2kDaGeJg Hi Ihor, Ihor Radchenko writes: > TL;DR: We are in the process of designing a more unified selection > interface for Org mode and want to see if there is some way to unify > context-menu-mode, transient, which-key and embark together. The idea > is to (1) avoid too many customizations; (2) allow users to decide how > to choose between multiple options - by mouse, keyboard, and using > customizable UIs. I think that the built-in Emacs thingatpt.el should not be overlooked here. Instead of implementing an entire system specific to Org, imagine a generic action-at-point interface that works on "things" from thingatpt.el. For the various targets, Org could add new "providers" to `thing-at-point-provider-alist', `forward-thing-provider-alist', and `bounds-of-thing-at-point-provider-alist'. [ Org actually does already register its own 'url' provider for links. ] Then, Org could implement a number of action selection interfaces that act on the various classes of "thing". An exemplary package would be Philip Kaludercic's great =do-at-point= package, which provides a simple action selection menu for the thing-at-point using `read-multiple-choice', which I find elegant and intuitive.[1] I have gone as far as implementing a 'heading' provider for Org and `outline-mode' (for use with =do-at-point.el=). I don't see any reason why Org couldn't define a 'citation' provider, a 'source-block' provider, etc. The only downside that I have found with adding lots of thingatpt.el providers is that it can be difficult to write providers efficient enough for `forward-thing' in particular (`forward-thing-provider-alist'). I may also be misunderstanding the proposed interface. For example, instead of a generic interface for acting on a single thing at point, maybe you are describing more of an interface for associating commands with multiple potential targets that must be located (e.g., in a subtree), which are then each associated with actions. Even if that's the case, there is a good case for implementing thingatpt.el providers for the targets, so that users could bring our own action-at-point packages/interfaces. [ I would be willing to help write some of those providers. ] And if thingatpt.el isn't generalized or fast enough, then there is a case for creating a new, more flexible /de facto/ library like this for Emacs. [1] https://codeberg.org/pkal/do-at-point Thanks, Kierin