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 QJ7zDwV4JmdVBAAA62LTzQ:P1 (envelope-from ) for ; Sat, 02 Nov 2024 19:05:41 +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 QJ7zDwV4JmdVBAAA62LTzQ (envelope-from ) for ; Sat, 02 Nov 2024 20:05:41 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=c7fWmiG3; 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=gmail.com ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1730574341; 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=sC6dfQiof0XocbeyvcWR6D6XN3Z3T/9llFdvMVBNiU4=; b=MXOwo0xqzizF1A4w8oUbAxNadFwJu0tieIl1NgVuN/l6TtgQAmori4BKJa24vd1kbGvLqZ 6F1+95G54CGSJYIsbadukWQJtXV0DeTLAWUDEaQyu+h4RCPSJmxc2TJkcbbFj1S/Muf9Nr 9lqJW8c+64xLYBBLOnxk03CSO4ODMz/LpqKE2KsenOweMSnlLorhvx6hyb+L+9wny92+P8 rDM4G99F5a/H2BvwxZqXnSJ+rZ+oMCcDI9U+58TKWhO16UZWFkQX4SQWx+QuTGU6EkIP2Z lu1PrVnzBvAMuXJZCgWHfj3jHPkLpvWrFgLOutl3S59yT5JaY+LJxXftEePkKQ== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1730574341; a=rsa-sha256; cv=none; b=PM+958CEr4xCA4s02jQE5kIjxdAcTQy7XQ3ZkP+JymPcrIknj2p8JxUrIpp3QONMoK8N6W 45DZkXA2VEm0N6rIONsuQQ4kHHYS9pEY2xZBGJNsSNrqIHTj78JpxVuHP5C/YfcQwmwxyI /CG/c3MjqehGYpreLtiEjTLzwCwoSMIo7RDISTS3hf+RmyS96lRFuBOWLYOh2WpU0GZEfA cHJfheCFOpB7Qd295DovVLu4vVqzw1n8hyY7uZoKoyccWHQEaJ4p2lR6vc/QGjmY3zhypd 0CguG0hkkZfz9D0jKS877RK1XNFkAzXR4ply9vaXxRYkCuZioHXXJyLtbywbWA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=c7fWmiG3; 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=gmail.com 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 D91A182006 for ; Sat, 02 Nov 2024 20:05:40 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t7JQc-0003Hg-QK; Sat, 02 Nov 2024 15:04:54 -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 1t7JQb-0003HI-4Q for emacs-orgmode@gnu.org; Sat, 02 Nov 2024 15:04:53 -0400 Received: from mail-lf1-x136.google.com ([2a00:1450:4864:20::136]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t7JQZ-0007mj-Ke for emacs-orgmode@gnu.org; Sat, 02 Nov 2024 15:04:52 -0400 Received: by mail-lf1-x136.google.com with SMTP id 2adb3069b0e04-539e63c8678so3384447e87.0 for ; Sat, 02 Nov 2024 12:04:50 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730574288; x=1731179088; darn=gnu.org; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=sC6dfQiof0XocbeyvcWR6D6XN3Z3T/9llFdvMVBNiU4=; b=c7fWmiG38YPFJm5SJcitRsQziV6AjzeAAM9An5UaIZsLENiNxvAtNOVwB3PCPcC88h gk7psVYl2ieXc6NMOqgpv15sqhYJ3erlYbE6YJYsCFpXNk9HyF1AVHlbzROo+fMVECGV +c0s1paZOYJV2wzGnjXnyVEczJv5NJ8uNIH9qOtR4ooVurUpFpfeoBmHZYLnwjTYux6R i7vA1s88rReE2dhDQt21OIPcKlehWgROG2aRo1T0gtwvcS8NbyCCIjhdabKiNkre88B+ VXy+1W9WbF1YAcYgkkaOcjqqHzvmEHxt4XbybpbfL+fq9xBVLNYXtaXs3wU0gPBIzY28 tvbA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730574288; x=1731179088; h=content-transfer-encoding:mime-version:message-id:date:user-agent :references:in-reply-to:subject:cc:to:from:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=sC6dfQiof0XocbeyvcWR6D6XN3Z3T/9llFdvMVBNiU4=; b=mlMdUtVrtGjsbv/eAre2kiUOST8G7HLzGKpNDw8F8oqA0/vlCtVFGNWLoiw+FJgtlN lMyuSYvS84JmssHXNQyBjKlpD2uRa28lxixvxFxJhk9NFCRzVpFoUBnC7U3O2SCLd11A lnpLVNUy+jSHOEtjL/PDvLmOYcULIEzTRoCoBLVGYDsUxxErycU/Ln99FQckv9vgkbCT 9bCFSvfzTnkFJsNCoG3/EPdIAnMY+oElcshceMRep0fNxBLqPd95aRtstqMjL+bkEDiy NM/WicpKotpr+6CbI+dxoLb4ljXIubhsXhp1BMFgCAlECW5zQxvLwKoV5IYDWkqRNo1v N1UQ== X-Forwarded-Encrypted: i=1; AJvYcCVOq1CgZw5Q6yaNW5CmUiLbdOPZsesvmSmkHULUFrDZv//TLppIyQKdEotp/QZ6opYFDqajAXle+QGQxBo3@gnu.org X-Gm-Message-State: AOJu0YxUYl4soOd0zjZyQZhHLA88PlV92aZ4+8kvL5LstvBbd/fljEDm l0S4u7yvfxHQbJpBoagao8G3AJyM7hkgjvfTgOwGXPACNT0F5Ca7sHocRw== X-Google-Smtp-Source: AGHT+IHfLteJgBzFc0H31R0Uw5nNdy5CdmAYVg4yfIxY/ET8Nk3lKJ8s8CzBAX3QaCCW8jbftKwPMw== X-Received: by 2002:a05:6512:33ce:b0:536:7a24:8e82 with SMTP id 2adb3069b0e04-53d65de4988mr3669160e87.13.1730574287999; Sat, 02 Nov 2024 12:04:47 -0700 (PDT) Received: from barbar (89-27-102-202.bb.dnainternet.fi. [89.27.102.202]) by smtp.gmail.com with ESMTPSA id 2adb3069b0e04-53c7bdcbe17sm1013932e87.197.2024.11.02.12.04.46 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 02 Nov 2024 12:04:47 -0700 (PDT) From: =?utf-8?Q?Tor-bj=C3=B6rn_Claesson?= To: Ihor Radchenko Cc: Jonas Bernoulli , emacs-orgmode@gnu.org Subject: Re: Org-cite: Replace basic follow-processor with transient menu? In-Reply-To: <87a5eievav.fsf@localhost> (Ihor Radchenko's message of "Fri, 01 Nov 2024 17:08:24 +0000") 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> <87msil77oi.fsf@localhost> <87ed3wnlv4.fsf@gmail.com> <874j4sccuv.fsf@localhost> <87jzdo2e4m.fsf@gmail.com> <87a5eievav.fsf@localhost> User-Agent: Gnus/5.13 (Gnus v5.13) Date: Sat, 02 Nov 2024 21:04:44 +0200 Message-ID: <87wmhlmp83.fsf@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=2a00:1450:4864:20::136; envelope-from=tclaesson@gmail.com; helo=mail-lf1-x136.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 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_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-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: -3.72 X-Spam-Score: -3.72 X-Migadu-Queue-Id: D91A182006 X-Migadu-Scanner: mx13.migadu.com X-TUID: k3+yWJAgTyRS Ihor Radchenko writes: > Rather than going into recursive replacements, simply let-bind > !citation, !prefix, and anything else we may want to provide around the > lambda/function call. Clever! I had to put the let inside the lambda for it to work. (defun org-cite-basic-follow--parse-suffix-specification (specification) (pcase specification (`(,key ,desc (lambda . ,fn-args) . ,other) (list key desc `(lambda ,@fn-args) ,other)) (`(,key ,desc (,fn . ,fn-args) . ,other) `(,key ,desc (lambda () (interactive) (let ((!citation (car (transient-scope))) (!prefix (cadr (transient-scope))) (!citation-key (org-element-property :key (car (transie= nt-scope))))) (,fn ,@fn-args))) ,other)) (other other))) Does it make sense to keep matching the lambda separately? This just keeps getting better=3D) Thanks and cheers! Tor-bj=C3=B6rn