From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.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 Iy5LBRq1XmeXVwEA62LTzQ:P1 (envelope-from ) for ; Sun, 15 Dec 2024 10:53:14 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e16b::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id Iy5LBRq1XmeXVwEA62LTzQ (envelope-from ) for ; Sun, 15 Dec 2024 11:53:14 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="A/1tSkoc"; 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=1734259993; 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=9fF0UNnLObqzYZ+HNxUkNfdsyXm9Z2AeNOnXRxDXfdo=; b=n+ljGn6zS4vH+ezJNlvexXPfaxjQHZzkYwb2k41q7f+xTk4lIi/p6W+enPKOZf9Lo9Qvi0 knnm57AAgcdQoAS189D8LkTQR01GRfdCnuAspY8aMtw8240C63aBFYDB5FxFnjI5bBTXc/ frx/W6ZMANChZdw2kS4YzrtIOHd79w9KQflqIOs/4AcZDe9tnqHymvpk/Oy9TL3jqtjz/o 1rNqe7mEw0dYD6RMdSfePPQzIi5Je4ucC0EhhCm9/VYYW1pI5hXnbmUt6hukvLdXklCY6B luyI1wHLuj5nuPmELUCxjdtBw0L7q4003ei12GJVJ2CsvIMsFlORY8K9YjpPkw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b="A/1tSkoc"; 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=1734259993; a=rsa-sha256; cv=none; b=SLpo+BFEZeyGHOD0vLYdAfFsVi+eVACP3BPczlS2VqqXbNTEE30vMMuNLzER125bfeTaRt cWgLSX9BQqknI7N0dPwTTJATB3Nz20e8NAiOf2XD3bORxtUx/YzfjzxrhF1IzbqSCVDjAM pzd1ff6tfi/mdqo1K2f+/ROWREJP9ofAuufXYjMHpozJn0J9AY8zD8ChHnSm7J5YZk4g4B vNWaSnyozEp21zz3X9wBoWy/PQxkPcCnU4y7VCR7VsEQ4pOVAVZxcPhtaRMgaB+rB093xq mXo1NA+XwLSBmFuBAQh/zlD31HSayV8weyOt3jLKgRbudyJWq/uNUKH9G3Cxwg== 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 CBB5E7E0B2 for ; Sun, 15 Dec 2024 11:53:13 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMka8-0004UL-Lz; Sun, 15 Dec 2024 04:06:32 -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 1tMka3-0004SU-9f for emacs-orgmode@gnu.org; Sun, 15 Dec 2024 04:06:27 -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 1tMkZz-0006w6-QI for emacs-orgmode@gnu.org; Sun, 15 Dec 2024 04:06:26 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 12299240027 for ; Sun, 15 Dec 2024 10:06:17 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1734253578; bh=CHPIwIcQwUGNNp71IxoXsb9d0XD1gloudUEsWWTWKks=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: From; b=A/1tSkoccQT6MAP/BzJhjyICDai+HHbqokaq3761c1v/tabLfS5KhBePlWFR33BAB 1BZTRDYk9gr1jxmZZ4wHi3oFevH894kUf/4SnNlOIwBYs7zo2edQFrUaPYnXfCzBXx l07IPnxRz0Z4oH8+Ct7ZSYo/yngo4lTYvPjsSf+6yEtuobNIXdpUNIwAqF+LiiWhMz czqStiDLbJQioXDg5EDNWvzMMLzSTQlPmHgElOwKbMDUPFhexLBKMJcqKEC2zmIziO He9umKl0I2mfVagqqMQyPWJLymje2p6gPcSnpxbYgPekudhd6901leFIe+r4aV0xPx 1rgsgCiFLt0HA== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Y9xyK09B7z6tsb; Sun, 15 Dec 2024 10:06:16 +0100 (CET) From: Ihor Radchenko To: Juri Linkov 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: <87frmq6ufj.fsf@mail.linkov.net> 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> <87frmq6ufj.fsf@mail.linkov.net> Date: Sun, 15 Dec 2024 09:07:45 +0000 Message-ID: <87zfkx1fha.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_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-Flow: FLOW_IN X-Migadu-Country: US X-Migadu-Queue-Id: CBB5E7E0B2 X-Migadu-Scanner: mx13.migadu.com X-Migadu-Spam-Score: -4.36 X-Spam-Score: -4.36 X-TUID: QfMEOBpcuZBY Juri Linkov writes: >> 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. I am a bit lost. Maybe I did not describe the use cases I had in mind well. What I have in mind is a menu UI for various commands: 1. org-open-at-point (one set of actions) 2. org-ctrl-c-ctrl-c (another set of action) 3. some other command 4. ... Then, "actions" will be various options a given command can do. In such scenario, the usefulness of text properties is elusive to me. I'd rather link the menu items to a command, not to place in buffer. > 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. What do you mean by "default context menu"? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at