From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id YPJ5OOgfmWeTZwEAqHPOHw:P1 (envelope-from ) for ; Tue, 28 Jan 2025 18:20:25 +0000 Received: from aspmx1.migadu.com ([2001:41d0:303:e224::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0.migadu.com with LMTPS id YPJ5OOgfmWeTZwEAqHPOHw (envelope-from ) for ; Tue, 28 Jan 2025 19:20:25 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=N967ASSc; 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=1738088424; 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: content-transfer-encoding:content-transfer-encoding: in-reply-to:in-reply-to:references:references:list-id:list-help: list-unsubscribe:list-subscribe:list-post:dkim-signature; bh=CxTw4KCaOmsJtQ6bzNPWJS6W/pfDGsuly8HQsrlUNto=; b=mS+rJkil3jCzt49fzvBrguLXZn8BwukLor09myk8+EGb4QrTamtoAlKMBebSeTf7fwcI6I LFNXha8e7XhqFJpzhVzUg+XhZw88t4SzqeY5IV5WXMTJk3gpVK/wZd4lUApA8AoPq0JLfm kjmUNlOkTsGzHIXENe6ImkuAn129OE8BGKIYaBC+CQ3GYqrIZ4gYOnK2ktcp/WL/K4+LVC tCrfLoSro85giB9lReOmW2bIgGXbeeG1W1+3WajqRmiHgUgP/pd84EIdPjS38Cdely2SFk gzGoY5kX42bbgESrLXCsXhndtA0yybyU7lZBF/4BTsfLCtCu8NUMzMPP9SDQ+w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=N967ASSc; 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=1738088424; a=rsa-sha256; cv=none; b=PBQm/mYkUR/o/DkAb38bohznmCXfIz/88QtZ6DFh1KlKDCFp0rc/4GyxsGpBWAqMQjiHKD tJgzj1UUyPlkzlSNquDEdcrecxjf8Ru/NiXa9Jfp8NnGLGJI/BnOqBXDCUiH7suOHL3dxO lVo/4GbxZ9EOVVxfT6LRw8f3rUDVysmYLO+nBBSedS9Y7sAAIakk3SnSaIdyrQIkAAiJrf WZXPq5KPrsNTGVOyRTPhaoGiFuZu6s2IU2a5vzYFodUW3MfwcXAAJAX424NekQFxq0ahWg jwc//E8KavZVnJ4RrUPxjIPudOq1lfBOL41eZ/rTlH4H+2fO4vf04R8BvC/nDA== 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 692186742A for ; Tue, 28 Jan 2025 19:20:24 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1tcqBF-000179-Sm; Tue, 28 Jan 2025 13:19:23 -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 1tcqAt-00015j-QR for emacs-orgmode@gnu.org; Tue, 28 Jan 2025 13:19:05 -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 1tcqAr-0003gp-7q for emacs-orgmode@gnu.org; Tue, 28 Jan 2025 13:18:59 -0500 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id F04FD240027 for ; Tue, 28 Jan 2025 19:18:48 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1738088329; bh=gTj9RVwCyMy/lZf0xpybcVuzqGtq/5Ti911l9vbL1pY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=N967ASScCFG+qfN3aaIROu99ZmkfnweCYYWFbo9Q5vva3/q90tWbUWVFX8vAzV3AN a4vFyPOgVGcAD8FF2h0IJWxvFtqe6vRENLkoCln/tdL3W5E53MaZ7xNFz7QhWpXBsJ rkq5oSKXca+r5jUaFxuJENuTN5my2LraJD01nl9TZxGzPA2ZQ//CE/8QxYkzfCPoK1 0KTe+MKEpQm9m4eymb96nHS0inq8T23JRtCpbS3/DerUNp/Tkt1zh0nvrCNOMB/M3b 186fom5M/QNr5QV/j+BHG0kBnP+OsRKuM+KEvg6lGgapVlGt9kdQLKx6+B0UeJ0NUu 7a8DdaUszjDUw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4YjD7W5zW9z6tvZ; Tue, 28 Jan 2025 19:18:47 +0100 (CET) From: Ihor Radchenko To: =?utf-8?Q?Tor-bj=C3=B6rn?= Claesson Cc: Jonas Bernoulli , 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: <8734hdna4r.fsf@gmail.com> References: <8734m28l9a.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> <87zfkx1fha.fsf@localhost> <8734io3xyo.fsf@mail.linkov.net> <87ttb3cxk5.fsf@localhost> <87h66ult46.fsf@localhost> <87y105r3bd.fsf@mail.linkov.net> <878qr7c4fx.fsf@localhost> <8734hdna4r.fsf@gmail.com> Date: Tue, 28 Jan 2025 18:21:02 +0000 Message-ID: <87msfaajg1.fsf@localhost> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable 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_H5=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, T_SCC_BODY_TEXT_LINE=-0.01 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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Scanner: mx12.migadu.com X-Migadu-Spam-Score: -3.99 X-Spam-Score: -3.99 X-Migadu-Queue-Id: 692186742A X-TUID: RW5/Ihi32r0Q Tor-bj=C3=B6rn Claesson writes: >> So, my tentative plan is the following: >> >> 1. You finish your patch for org-cite >> 2. We will slightly generalize the patch, so that it can be used outside >> org-cite context (should not be too hard) >> 3. We will look into converting transient menu layout into context menu >> keymaps and into which-key layout to see how it can work > > Sound good! > > 1. Here is the current version. The difference from the previous one is > that the default action is customizeable. > > I have been testing this a bit geting an article through peer review, > and it seens to work quite well=3D) Thanks! Here are more comments: 1. I am looking at C-- C-u prefix, and I am not sure if it is ideal What I think might be better is: - make a short C-- ('- argument) the switch - make the switch customizable (if users do not like C--) 2. DOI copy command will err without user-readable message if there is no DOI in a given BibTeX record. Instead, a user-error should be display= ed 3. I think we should add "browse URL/DOI" command to the default menu. Also, "copy URL" - that makes sense as a companion to DOI (some references only have URL, but no DOI) 4. Moving towards my item (2) in the plan, we need to generalize (transient-define-prefix org-cite-basic-follow ...) into a macro that can work for arbitrary command; not just for `org-cite-basic-follow'. Let me know if you want my help on how to write such a macro. 5. If we are going to have multiple commands with menu+menuless versions, it probably makes sense to create a minor mode that will enable/disable menus everywhere. In other words, instead of individual commands having dedicated option like `org-cite-basic-follow-ask', we make a minor mode that can be enabled/disabled. That minor mode will have a global customization that will list which commands should use menus. --=20 Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at . Support Org development at , or support my work at