From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp0 ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id GITcHc2okWA4NwAAgWs5BA (envelope-from ) for ; Tue, 04 May 2021 22:04:29 +0200 Received: from aspmx1.migadu.com ([2001:41d0:8:6d80::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp0 with LMTPS id mIaBGc2okWBIHgAA1q6Kng (envelope-from ) for ; Tue, 04 May 2021 20:04:29 +0000 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 DA47E1EF76 for ; Tue, 4 May 2021 22:04:27 +0200 (CEST) Received: from localhost ([::1]:57470 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1le1HP-0000sH-4L for larch@yhetil.org; Tue, 04 May 2021 16:04:27 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:57014) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le1Gm-0000s4-UU for emacs-orgmode@gnu.org; Tue, 04 May 2021 16:03:49 -0400 Received: from wout2-smtp.messagingengine.com ([64.147.123.25]:41001) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1le1Gk-00039V-KD for emacs-orgmode@gnu.org; Tue, 04 May 2021 16:03:48 -0400 Received: from compute2.internal (compute2.nyi.internal [10.202.2.42]) by mailout.west.internal (Postfix) with ESMTP id 2A651152F; Tue, 4 May 2021 16:03:44 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute2.internal (MEProxy); Tue, 04 May 2021 16:03:44 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=fastmail.fm; h= references:from:to:cc:subject:date:in-reply-to:message-id :mime-version:content-type:content-transfer-encoding; s=fm3; bh= kgzpPF8rzdJ1lxTEv5gyEYVgO/2moZ9qVz277y5CmVs=; b=l1rNjxnObQXWlHYp DJFxKTvkGOZUt6jfhXOB9vbp2vG/uo64UzZLr2Dzxcb+lAqrpDM1+IDJzt4pYMR1 NiUlObMmTu3R+NSitXDWlicVS6rHWBsSW2+y6RqTLGwUQxCs0TH5rsYi+LaH8mb7 iHg+abpR5FISitthX/45jyMPClBm72lzk3kIllxRHIJawEOPNwHqXLsl/pN/Ghkp QG0iv5jKCTpS/bdDOerOUBGe3+TYofmgtM4H4d/B9gUzNhHia3eyWKq5iRDHNO2y NYFi8ttPALm/gh5OSA9YHIss2HJTeW3g97BZNjiN0jQGEwlE2dPoxmfgBHBjC+h6 QHzO1A== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:content-transfer-encoding:content-type :date:from:in-reply-to:message-id:mime-version:references :subject:to:x-me-proxy:x-me-proxy:x-me-sender:x-me-sender :x-sasl-enc; s=fm2; bh=kgzpPF8rzdJ1lxTEv5gyEYVgO/2moZ9qVz277y5Cm Vs=; b=k8imRM+9/9Hh3UO6VKgZ3ERGPqB92QWo1aC7xtNZt7ORhLhYdv1mvP2fb L0uz+robO4Vqh8WlJevXADZ+/qI2/0+OJCVj+yJvPa24PrcJdZfRKevdvSyJe+35 zQUmLvu1dq7BUvwlAbWzSnTtj0dz+nYwHoZa5Jy4AFpsfshgaOenloXZKR5+jbwB 39LHAFyJzmJeCmNEgTDLSQyQHwGlzJrR2KWBot/LZ3LUMzBldQqx4eaxcy6Kjao+ kIWa1cT4W3gbh9fqo3+M7Eo4k61rHTqTOHFk4p2AVLU2PI5p1n6wmZIrHQ4P8nDP Ua8V3IJEt0cTyUfssaovhx2/1/NvA== X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgeduledrvdefiedgudeghecutefuodetggdotefrod ftvfcurfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfgh necuuegrihhlohhuthemuceftddtnecunecujfgurhepfhgfhffvufffjgfkgggtgfesth hqredttderjeenucfhrhhomheplfhoohhsthcumfhrvghmvghrshcuoehjohhoshhtkhhr vghmvghrshesfhgrshhtmhgrihhlrdhfmheqnecuggftrfgrthhtvghrnhepvddvgfeghf dtiefhvedvvddtjefhleejveeltdelffevhfeijeekhfdutdffgeefnecukfhppeefuddr udejrddvhedurdduleelnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrg hilhhfrhhomhepjhhoohhsthhkrhgvmhgvrhhssehfrghsthhmrghilhdrfhhm X-ME-Proxy: Received: from Swift.fastmail.com (ip1f11fbc7.dynamic.kabel-deutschland.de [31.17.251.199]) by mail.messagingengine.com (Postfix) with ESMTPA; Tue, 4 May 2021 16:03:41 -0400 (EDT) References: <87bl9qmxy3.fsf@fastmail.fm> <87r1im5uzk.fsf@nicolasgoaziou.fr> User-agent: mu4e 1.5.12; emacs 27.2.50 From: Joost Kremers To: Nicolas Goaziou Subject: Re: Question about citation processors [wip-cite branch] Date: Tue, 04 May 2021 21:17:22 +0200 In-reply-to: <87r1im5uzk.fsf@nicolasgoaziou.fr> Message-ID: <87y2cufequ.fsf@fastmail.fm> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Received-SPF: pass client-ip=64.147.123.25; envelope-from=joostkremers@fastmail.fm; helo=wout2-smtp.messagingengine.com X-Spam_score_int: -27 X-Spam_score: -2.8 X-Spam_bar: -- X-Spam_report: (-2.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_FROM=0.001, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_PASS=-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.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: emacs-orgmode@gnu.org Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1620158669; 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=kgzpPF8rzdJ1lxTEv5gyEYVgO/2moZ9qVz277y5CmVs=; b=kQVNq3Aqirnrup02oRMo8MHhMtEuFuQg2MKgVk38R7ObJ3hA3B/sCO+61gZWHgbS/jSp1Y xeoYLcLqKtXNwUkHF1wffhhUpm0V/Rx61E3ZSz13Iid6EHLw/wy4PuoWXX/4BY/dCIf5Ou vfMxExdyvqjKbNmgwhD1IOOxF6KGO8D08VPjYdGR6h4Uuy5rSakEgchIA9CPFBhXKtuRp5 uRZnj/oECsPhixT6WSdOPut9Ht5OI/tP51F7qvUjKmqTXyiUYj06yzIryoYQfScxwvlx54 bLJoKgM6MH1Xft7bTFK5/ZBfO+/hND82jkrOgirqHRX4abgJO+AbPZuVaShwxA== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620158669; a=rsa-sha256; cv=none; b=KOcWLzPZsC10KKvUjUYgtsjppEsv71x9DRirzKY1J9l4oVJKSNGqhmsCSTxp0VHNxg1v8l iVOtvQKpWOTjKhaEgnqzLztQ75ob7Z/TUjq2YZf5zyKLFma8QtTuZDpDX1uFdaZK9EAeDm pYpcRbx2n4jzvj0/a1BaGZBLFnbSzKX8cEuWpnXKqyjc//2Pn9rDihmEqGlHGNHs45EEAY kE9kIfNWoPYr0F2awt54aoO0q75H5KFZrvXaeSZzjByJQcXfl8WRe+8e0AdotaZ9nWpY56 fUQQoFvFrzSD3SSJk+qZ5SRdd8VZWg0oZdoUnSCPtNayNRwzo/v7DY3/p/vikg== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=fastmail.fm header.s=fm3 header.b=l1rNjxnO; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=k8imRM+9; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -1.66 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=fastmail.fm header.s=fm3 header.b=l1rNjxnO; dkim=pass header.d=messagingengine.com header.s=fm2 header.b=k8imRM+9; dmarc=pass (policy=none) header.from=fastmail.fm; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: DA47E1EF76 X-Spam-Score: -1.66 X-Migadu-Scanner: scn0.migadu.com X-TUID: oCm3PpQAcpu/ Hi Nicolas, On Tue, May 04 2021, Nicolas Goaziou wrote: > If you think my assumption is incorrect, please let me know what kind of > hook would be required. No, I don't think there's anything Org should provide. I just wanted to be = sure I hadn't missed anything. >> - =3D:active=3D just means "font-lock", right? > > Yes, with the emphasis that more than faces could be provided (e.g., > help-echo, specific keymap, =E2=80=A6). Ah, that's good to know. I hadn't realised that. >> - What kind of data structure do the =3D:follow=3D and =3D:activate=3D f= unctions take? >> Should I just look at =3Doc-basic.el=3D or is this written down >> somewhere? > > Processors must be registered using `org-cite-register-processor' > function from "oc.el". See its docstring for details. All arguments are > detailed. The docstring talks about a "citation object", and the "citation or citation reference object at point". Do I assume correctly that these are structures= as returned by =3Dorg-element-parse-buffer=3D? > At some point, we will need to write some documentation in the manual, > too... For the moment, I can follow the lead in =3Doc-basic.el=3D and do what it d= oes. > "oc.el" provides a number of hopefully useful tools. Among them, > `org-cite-list-bibliography-files' function returns what you're asking > for. Global variable and keywords are cumulative. Great, thanks! > HTH! Yes, this was certainly very helpful. Thank you for your answer and thank y= ou for all the hard work you've put in. The same goes for everyone else who put time and effort into making org-cite happen, of course. :-) --=20 Joost Kremers Life has its moments