From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Suhail Singh Newsgroups: gmane.emacs.devel,gmane.emacs.orgmode Subject: Re: [RFC] The best way to choose an "action" at point: context-menu-mode, transient, which-key or embark? Date: Fri, 13 Dec 2024 17:57:48 -0500 Message-ID: <8734irb383.fsf@gmail.com> 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> Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="20699"; mail-complaints-to="usenet@ciao.gmane.io" User-Agent: Gnus/5.13 (Gnus v5.13) 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 To: Ihor Radchenko Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Sat Dec 14 07:53:08 2024 Return-path: Envelope-to: ged-emacs-devel@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1tMM1U-0005Eh-C4 for ged-emacs-devel@m.gmane-mx.org; Sat, 14 Dec 2024 07:53:08 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tMM0f-0005FY-RS; Sat, 14 Dec 2024 01:52:17 -0500 Original-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 1tMEbc-0003Tq-3u; Fri, 13 Dec 2024 17:57:56 -0500 Original-Received: from mail-qk1-x742.google.com ([2607:f8b0:4864:20::742]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1tMEba-0001gN-Ll; Fri, 13 Dec 2024 17:57:55 -0500 Original-Received: by mail-qk1-x742.google.com with SMTP id af79cd13be357-7b6ef047e9bso208806485a.1; Fri, 13 Dec 2024 14:57:53 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1734130673; x=1734735473; darn=gnu.org; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:from:to:cc:subject:date:message-id:reply-to; bh=deklWq7epzFtx0oIXqgL4JB303p8pytGN2XoBt4dg2A=; b=AWq9e6YGoVKqROEAGWFx5KiklUc6qN8ZpogGxP8VZ3Qfqb2+YPRFlWA+m0jNv+MqUz 79lyDxZfSUeBUcHY+OyzPz+Gq9FtHtqaN8lVYjBH1Z2pYXsYWZLsYP0EOkWJYh7XZJDG lWubgrBl+0DRamy0VVsPji2yRTRdb7rvGoj/TmxaXjo3vjc7ilzBIfwyzZ27ZLKtQH6h CyybbTbCxsjPQfZ/Tq5RMAUcNEJV6KHxCOjLMNm1rksPRFQDkjReVipCX8iuH0qDhEOU KdkkumdBxQARRdbBlwjoOWksuduZE9QhoP6uHJ4Ni2zLA08+3OygdE6raPr2e9l+MY5e fZaw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1734130673; x=1734735473; h=mime-version:user-agent:message-id:date:references:in-reply-to :subject:cc:to:from:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=deklWq7epzFtx0oIXqgL4JB303p8pytGN2XoBt4dg2A=; b=N8s+diNewOMWl816ybBgRUlNY3bZ45KAaaHQmIeFi1cjd43tEuRMgA0DmGEyehzBnM PX8yQm6dMVK0XZeP5T5rqs8Qk2hchk81ysoFhzhiNMpk2GF8lhDfjG1xNCE22WoFTSng JiuULPLt7ZpzXyq9Acdysp0sA4AHcoEYddUKdEnTmfpjS/Sd7cWiDxpGBC0ntSMZXdEA vS+oZDCPZffOHpCS1XxyvWsHj8ts3uE5SjS2/jQX8nUSVvwIF2FxXjCgyavO7Lh553cI zf8Zc3vvrDdq9x225QrHBFlEjggTwjOEKWPLiiGcYwt+S634ArK5ySkDpq/Dz9EGP7cz XAbw== X-Forwarded-Encrypted: i=1; AJvYcCU6AHwqEFAziTYjpCPMCjLHRj7/2EX2mMG2kHWJmwJ4PQyIYaWVKVbjDDYbWS1B3m9dTIRUrIGHaPoE5Q==@gnu.org, AJvYcCW6R3oJ1KinDMgz7agCU5aSYL7c8p5Kugblu79lQNUhEHMqttd7j5TDN9i4OzK880K+egSifuH1L3Nm/KvxGQ==@gnu.org X-Gm-Message-State: AOJu0YyXltJ8Xz3DrvBakXuxDOuDegsXKgtGrCPfp2yLqXkTHz90bqLp 6jQ7zpk80zk2S+4MFwgk4wDTWPoKyCqO+Bxo6Wc4xPCQe9aFeiEY X-Gm-Gg: ASbGncvrYuo0+9bertr33fp3eycryXQCpLBL3YzHJBBNIrdX6wIEwCrbpOrD0TmWdRf DOj+fOY72DeUru+jYndmFQ2yrkYbf0OfeFIgHUic0PgF6BHuREhdpV1qPxR5/qiewIbJeGgTnXU X+ADqNu3VdWu64HMirYHtO9ngiVe7bX2yfGcYQ9ycYVnZ1t0T5Q798N/x4KOzXRLdF0WaJ0yKtF f+W3Bhp2UQ7t1D2hxUY8OoCB3yDBlAyrWgMEfr+/5yECZG1ctZp/mhnb2YLtBiEFB8np3ceoKGi YKNlBkg/1DIZD9uo1g== X-Google-Smtp-Source: AGHT+IGSppoh3atzFTnadbkc7TNck8dSKbbqWBIy8DPr5kM5BgUJWS4KcyK8FxP9lYbNSr1V1+dyWA== X-Received: by 2002:a05:620a:4554:b0:7b6:da9d:d810 with SMTP id af79cd13be357-7b6f8db7447mr984532285a.24.1734130672836; Fri, 13 Dec 2024 14:57:52 -0800 (PST) Original-Received: from gnus (mtrlpq0776w-70-26-179-129.dsl.bell.ca. [70.26.179.129]) by smtp.gmail.com with ESMTPSA id af79cd13be357-7b7048bb9c7sm22478285a.93.2024.12.13.14.57.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 13 Dec 2024 14:57:52 -0800 (PST) In-Reply-To: <87msgzh1dh.fsf@localhost> (Ihor Radchenko's message of "Fri, 13 Dec 2024 18:41:14 +0000") Received-SPF: pass client-ip=2607:f8b0:4864:20::742; envelope-from=suhailsingh247@gmail.com; helo=mail-qk1-x742.google.com X-Spam_score_int: -17 X-Spam_score: -1.8 X-Spam_bar: - X-Spam_report: (-1.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, FREEMAIL_ENVFROM_END_DIGIT=0.25, FREEMAIL_FROM=0.001, RCVD_IN_DNSWL_NONE=-0.0001, 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 01:52:12 -0500 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.devel:326467 gmane.emacs.orgmode:164129 Archived-At: Ihor Radchenko writes: > Tentatively, I am thinking about the following: > > 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. > > WDYT? By "display string" do you mean a description of the action? Or would that be additional? 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). -- Suhail