From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2.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 KOpiOqDuKWfDHAAAe85BDQ:P1 (envelope-from ) for ; Tue, 05 Nov 2024 10:08:33 +0000 Received: from aspmx1.migadu.com ([2001:41d0:403:4876::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2.migadu.com with LMTPS id KOpiOqDuKWfDHAAAe85BDQ (envelope-from ) for ; Tue, 05 Nov 2024 11:08:33 +0100 X-Envelope-To: larch@yhetil.org Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BGoiSwKT; dmarc=pass (policy=none) header.from=gmail.com; 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=1730801312; a=rsa-sha256; cv=none; b=uRlTz9t8I/XWTZVON6MRsFj6mzXL74kQ7VKRvOy6Bq2cTwURqj+GRQGrUNVP4gz/cfCWQy 5Brx67N/SwhCc7/v2AKMVh0TqNehBK9nPqo814yxb9M4nvMt1Visb7zOMooXf9WH2rANjN hUWNGFQKp53IGQgG4Rz+/YyS8BMf/QufDKekoS/GGXCfjG//NtI2g1bekb562rlVHvqwR1 TF2tomLrY8+b+dRuADzaWsoqHpRRi/WnQLRI22pPIccXdKNdGQkGH2kafe5xKQkWDbweqb CbJZFbVqQJnThVJMhh5/B7EB/NQ8IeF3mrVFM5950n1cLxibSCXj9ecjKk315w== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20230601 header.b=BGoiSwKT; dmarc=pass (policy=none) header.from=gmail.com; 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=1730801312; 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=6Wv17MqR4cJS/kxiqbRkDNDZRMO718peqEPZnt2V6Dw=; b=uVx75+b0jVpsIbauRI5/GLGt2jxODzIh5DPzs9Al9+UHA8bpSCKojRRK1xkishy1GQjvpc aCLp2HpFMTONpl52pBDodjRskfcfepj/JeVJ0ep+01hCHXleIA2M+IRKEAsiiyunSRkWTQ quEp+3b9Bx4Nu+L267gcgSEV3f3rc2lH5kEa9oaAaZAmG7SVo1MWDwbEJ5a2lJtLAH+JTd snSHYpF8fiN/01Avw53AyWtehjuYKBmXyx7OiVWBnGy/lvJigagbZ1SwtoYEY8ZsDpu6ez +WR+051nztxs+DkDd+Ty4dQoA+AtgZuaNMQDptee5TgwftK/sQNgQfchyaKkWA== 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 A0A4C7EF5A for ; Tue, 05 Nov 2024 11:08:32 +0100 (CET) Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1t8GTB-0002BC-1M; Tue, 05 Nov 2024 05:07:29 -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 1t8GT7-0002Aj-KX for emacs-orgmode@gnu.org; Tue, 05 Nov 2024 05:07:25 -0500 Received: from mail-lj1-x22c.google.com ([2a00:1450:4864:20::22c]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1t8GT6-0008VO-4A for emacs-orgmode@gnu.org; Tue, 05 Nov 2024 05:07:25 -0500 Received: by mail-lj1-x22c.google.com with SMTP id 38308e7fff4ca-2fb587d0436so54185731fa.2 for ; Tue, 05 Nov 2024 02:07:22 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730801241; x=1731406041; darn=gnu.org; h=content-transfer-encoding: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=6Wv17MqR4cJS/kxiqbRkDNDZRMO718peqEPZnt2V6Dw=; b=BGoiSwKTAOeEs6gB9siVzv8yIYGlH8l5BDKYzlA2TQze3TwIVjPGKMTgGqJi+i5Da7 xK1raiRTcykYcUobvSGuf9fWkIIAA9QpW1UfKN8NEFWO4GFt2uHvJolsgW0XuIiKt+3z +9bbFGS0cUKHZUZpmvVkI/Tcx0i7m1s1Cku3FQaGWefv1fS+VnfwNXM84C0cxMwuExom JRBf2gwKZYD5ty7FlPWHRUitf0AXPhJDN8ZaFob5XKQDVaTRmBE7oyZIMl1bQhDuK2OJ QTCre5eIWrqaEn8IPWcB5M/0AHajxHqEQWU21dTBOq8MKbzs2SkIynjG0zenHjeZC1Ux GQfw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730801241; x=1731406041; h=content-transfer-encoding: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=6Wv17MqR4cJS/kxiqbRkDNDZRMO718peqEPZnt2V6Dw=; b=VxdOJeV8Bq8BC2dZBo4ms6rH9rEcZAm8RW1NyXzADIQH7ItbzQabpr5O9u4JP+pn7A zAyEOrYx8ltDDWCrgDm2ZpdJWUfcC4LMS8d3UYkQdA24nAHwo0R28HAs8QMVfDXMmpAY Bh+UxidQf14y/bBQ8AlNeAU0RpnZ7mYArH7IRXGllty0vO05U0IGY33TGqEgX9euUo56 xvKt57o0U0Qm2br0xKp5S6G8+H7oJWBWrqS277h7KFWaOMaJeF9UBegWgKSghwejYx1Y icgHVN+dAyZYjx9P2TuoIEaczCwQ3uPET1v+AMiHtmrx/hZrRIFzHdjk5e//wB8TUArG qN5w== X-Forwarded-Encrypted: i=1; AJvYcCXGtYLt0wdOZpvLLuymWOKz3CTM1jJb57Sp/wzSxP/jHiNOYRzoqLjOkZvJFt9DA60t+e3GDc0TFSBlBtgo@gnu.org X-Gm-Message-State: AOJu0YzhdKKU0CyiJHqky1rUpvTGxQdraAEyRv4yqJD8j9k7HmST+gPD Sj9/iJ7y8F/4H2xu8baKKhfA/OnV/6O2SxVXHMDSr/iYUU4W8a5hKIOJrw== X-Google-Smtp-Source: AGHT+IEyXVLpPE7mK+ymWe+ZzTxTOApfN+aMMJgeNtNHQWzRLqb0EqyuyTKk3FXZimv2KJ11f9/XmQ== X-Received: by 2002:a2e:a995:0:b0:2fb:4f8e:ef9 with SMTP id 38308e7fff4ca-2fedb81554dmr64766711fa.30.1730801240617; Tue, 05 Nov 2024 02:07:20 -0800 (PST) Received: from barbar ([193.64.204.56]) by smtp.gmail.com with ESMTPSA id 38308e7fff4ca-2fdef8c6011sm20684741fa.123.2024.11.05.02.07.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 05 Nov 2024 02:07:19 -0800 (PST) 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: <87y120daue.fsf@localhost> (Ihor Radchenko's message of "Sun, 03 Nov 2024 07:40:09 +0000") References: <8734m28l9a.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> <87wmhlmp83.fsf@gmail.com> <871pzte929.fsf@localhost> <87v7x548ri.fsf@gmail.com> <87y120daue.fsf@localhost> Date: Tue, 05 Nov 2024 12:07:17 +0200 Message-ID: <874j4m9ep6.fsf@gmail.com> User-Agent: Gnus/5.13 (Gnus v5.13) 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::22c; envelope-from=tclaesson@gmail.com; helo=mail-lj1-x22c.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-Country: US X-Migadu-Flow: FLOW_IN X-Migadu-Spam-Score: -2.93 X-Spam-Score: -2.93 X-Migadu-Queue-Id: A0A4C7EF5A X-Migadu-Scanner: mx10.migadu.com X-TUID: tAYIgXP+ceXQ Ihor Radchenko writes: > Tor-bj=C3=B6rn Claesson writes: > >> I feel that the guard option does the right thing by directly fixing >> the pattern matching - but what approach do you prefer? > > I provided the guard example just for your reference. > The preference for actual code is more readable code. > IMHO, my second variant with (and val ...) is more readable. > A, thanks, I will use that then! >> Is this starting to be a good time for me to produce a patch? > > Yes. Thanks in advance! Would it make sense to add two functions for getting the doi and url from a citation? That would be generally useful, and simplify the transient menu specification. Also, is this change big enough that I should apply for copyright assignment? Cheers, Tor-bj=C3=B6rn