From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms13.migadu.com with LMTPS id +O8pDDN+ImfgLAEA62LTzQ:P1 (envelope-from ) for ; Wed, 30 Oct 2024 18:42:59 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1.migadu.com with LMTPS id +O8pDDN+ImfgLAEA62LTzQ (envelope-from ) for ; Wed, 30 Oct 2024 19:42:59 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NExVKCfU; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730313779; a=rsa-sha256; cv=none; b=vAUXBRMSZSMNPuBk/7E4sGsPHW2ENpzlCdr56jNzR5Xkdr1ePfjIC32kS+Ttyvqk1iHJpM cePLLPcorRbc8vbdmwXNXjkq5/GRbRWcCcf+GhK7u3vslfeOQSCT3ld4+JQAaeiBL+rn70 Trw10Ll66ziVRvjTXpbEf6WmzC2t6wTzDCWGP8oxtFP5dzmJuHD0JR5LI7tpOPbZ26bxLl 9UPTkpz/c+OSsmGWGck9rQr/N8YCHl6tPYne3ryThc0vlz9dC5z9JmmcJxeNjui4VKvype Pzu9TrWmfMOSPq57LwSQbaQML71981LwjBTRTAHca7ecIiZeQ46k2+BHxv0ckA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=posteo.net header.s=2017 header.b=NExVKCfU; dmarc=pass (policy=none) header.from=posteo.net; 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" ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730313779; 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=TzjCc8KWWjmziNy1V8VtQWd0rpMm/tMqPwG32KcAphw=; b=pgEJpMjVCTqFYW9V3TABekHC6oTjs1SZNVXlJOGJUySahlPtUfUyDn9AiBCfuexKqtVyft Zufc8Hjn2TajQnAVmWzNK+/73kK7bV6bN49g3L4kzWQ6MLEI6814wowMPZjEbaeupxPcFi QMO6ekN1LuqvuJb65rSjCoeLO3z8aAay0dEFQ3XkSRs+lsR7brtviJGJS2zxD2/OMa8QHN hIJrkTtCvYgEnBi8uDT0rB7eKfNNaqZuIb59LYsabdFi/flQknD93w6ISv7j+Zp2+belrw /xmIxJdIQr6g2bW2kqgtEhOE/rL3y2Ph2s28DJl4ey4Fib4hud9Qm8upGFiiKA== 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 78ABA7B810 for ; Wed, 30 Oct 2024 19:42:58 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t6Ddt-0005L6-OL; Wed, 30 Oct 2024 14:42:05 -0400 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 1t6Ddr-0005K9-CN for emacs-orgmode@gnu.org; Wed, 30 Oct 2024 14:42:03 -0400 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 1t6Ddp-0003tC-2F for emacs-orgmode@gnu.org; Wed, 30 Oct 2024 14:42:03 -0400 Received: from submission (posteo.de [185.67.36.169]) by mout01.posteo.de (Postfix) with ESMTPS id 8F112240027 for ; Wed, 30 Oct 2024 19:41:58 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=posteo.net; s=2017; t=1730313718; bh=siWeOavGsk/VC2lNBMqMj1YcPcM2aZJUs/cLw49xH4I=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version:Content-Type: Content-Transfer-Encoding:From; b=NExVKCfUEAKSBOt9aXToMOx+7+J+9zAeAAHUR3FDrTXZ8zXQHTolR1wu8tArcZZFQ 2Wntc81vN4j3zCAd/gJ7/rhZfTEA4Mq2b97NUrYMV7nBIOf/og6FufsiziGkwIdR0r LhGfB1C7L9KmhUcD08+syh2Gs/rlEhO829B44OiewPNkzK76YFDT/QRKlviBQ5YLfe yrdUXhVEsGXAbv5F+E0fo/IMFtN34xLQwRoKFi4AcGThOxw8mgt9RlOHQr92IlzSGK eTeJMtR/LbWMSHgIiebVybSiucVMyAvuzoD4oFcERLb10bjix5YDAgBA3fBb0zLAdF iMn+W3hb1y1Dw== Received: from customer (localhost [127.0.0.1]) by submission (posteo.de) with ESMTPSA id 4Xdwvn6jPxz6tmv; Wed, 30 Oct 2024 19:41:57 +0100 (CET) From: Ihor Radchenko To: =?utf-8?Q?Tor-bj=C3=B6rn?= Claesson Cc: Jonas Bernoulli , emacs-orgmode@gnu.org Subject: Re: Org-cite: Replace basic follow-processor with transient menu? In-Reply-To: <87bjz2tam2.fsf@gmail.com> References: <8734m28l9a.fsf@gmail.com> <874j6h3rw8.fsf@localhost> <877cbamq2q.fsf@gmail.com> <87cykvrgwr.fsf@localhost> <8734lpmkjn.fsf@gmail.com> <87r08lqlbu.fsf@localhost> <87a5ewfvo1.fsf@gmail.com> <87r085vb1s.fsf@bernoul.li> <87bjz9o188.fsf@localhost> <87r0839jfc.fsf@bernoul.li> <874j4ueo1x.fsf@localhost> <87bjz2tam2.fsf@gmail.com> Date: Wed, 30 Oct 2024 18:43:41 +0000 Message-ID: <87msil77oi.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_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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -4.03 X-Spam-Score: -4.03 X-Migadu-Queue-Id: 78ABA7B810 X-Migadu-Scanner: mx10.migadu.com X-TUID: i3hy3rI6v22e Tor-bj=C3=B6rn Claesson writes: > (defcustom org-cite-basic-follow-actions > '[["Open" > ("b" "bibliography entry" org-cite-basic-goto (list (transient-scope= ) 0))]=20=20=20=20 > ["Copy" > ("d" "DOI" org-cite-basic-follow.copy-doi)] > ["Browse" > ("u" "url" org-cite-basic-follow.browse-url)]] > "Hepp" > :group 'org-cite > :type 'sexp) Since we can now allow pretty much a custom suffix definition, what about adding a bit of syntax sugar to the format. Rather than doing ("b" "bibliography entry" org-cite-basic-goto (list (transient-scope) 0)) we can allow ("b" "bibliography entry" (org-cite-basic-goto !citation !prefix)) where !citation and !prefix can be pattern-matched and automatically replaced with the appropriate values. > (transient-define-prefix org-cite-basic-follow (citation &optional prefix) > [:class transient-columns > :setup-children org-cite-basic-follow--setup > :pad-keys t] > (interactive) > (if org-cite-basic-follow-ask > (transient-setup 'org-cite-basic-follow nil nil > :scope (list citation)) > (org-cite-basic-goto citation prefix))) > > Here I removed activating the transient menu if a prefix argument is > present. If org-cite-basic-follow-ask is nil (the default) and I want > to call org-cite-basic-goto with a prefix argument, this would cause the > transient menu to activate, which seems wrong. I would still prefer some way to force transient version of the command in some way. I see it very useful for some people to set the proposed `org-cite-basic-follow-ask' to nil _most of the time_, but occasionally switch to transient version for non-standard operations. Maybe we can utilize some other rarely used prefix argument to force transient menu. Say, something like C-- C-u . This will make prefix argument have a value of '(-4). --=20 Ihor Radchenko // yantar92, Org mode contributor, Learn more about Org mode at . Support Org development at , or support my work at