From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp1 ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id kN8mGeGnkmAshwAAgWs5BA (envelope-from ) for ; Wed, 05 May 2021 16:12:49 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:bcc0::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp1 with LMTPS id OAy2FOGnkmDvIgAAbx9fmQ (envelope-from ) for ; Wed, 05 May 2021 14:12:49 +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 AEC979690 for ; Wed, 5 May 2021 16:12:48 +0200 (CEST) Received: from localhost ([::1]:33360 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1leIGd-0005C9-C4 for larch@yhetil.org; Wed, 05 May 2021 10:12:47 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:40910) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leIE0-0003De-CC for emacs-orgmode@gnu.org; Wed, 05 May 2021 10:10:05 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:53093) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1leIDu-0003dV-1u for emacs-orgmode@gnu.org; Wed, 05 May 2021 10:10:03 -0400 X-Originating-IP: 185.131.40.67 Received: from localhost (40-67.ipv4.commingeshautdebit.fr [185.131.40.67]) (Authenticated sender: admin@nicolasgoaziou.fr) by relay1-d.mail.gandi.net (Postfix) with ESMTPSA id 2335F240006; Wed, 5 May 2021 14:09:52 +0000 (UTC) From: Nicolas Goaziou To: Joost Kremers Subject: Re: Question about citation processors [wip-cite branch] References: <87bl9qmxy3.fsf@fastmail.fm> <87r1im5uzk.fsf@nicolasgoaziou.fr> <87y2cufequ.fsf@fastmail.fm> Mail-Followup-To: Joost Kremers , emacs-orgmode@gnu.org Date: Wed, 05 May 2021 16:09:52 +0200 In-Reply-To: <87y2cufequ.fsf@fastmail.fm> (Joost Kremers's message of "Tue, 04 May 2021 21:17:22 +0200") Message-ID: <8735v15l1r.fsf@nicolasgoaziou.fr> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/27.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain Received-SPF: pass client-ip=217.70.183.193; envelope-from=mail@nicolasgoaziou.fr; helo=relay1-d.mail.gandi.net X-Spam_score_int: -25 X-Spam_score: -2.6 X-Spam_bar: -- X-Spam_report: (-2.6 / 5.0 requ) BAYES_00=-1.9, RCVD_IN_DNSWL_LOW=-0.7, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=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.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=1620223968; 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:in-reply-to:in-reply-to: references:references:list-id:list-help:list-unsubscribe: list-subscribe:list-post; bh=8X+fSnMoos0wodILSplBZYkZdU7yshXH3TUJtwM6fxE=; b=PnxyxWL7ylmx14piy6lF1ZUFS40f+MtCJ/FvGVq1YdruHw9qhodpzKnkbMdGajcJkLnxZf dy/DpQuWBQ8vxQhg6E6lcVsZJvvG7ZKyFkv0+TmEoescQsS8YajZ9sdLAZwPf8zgg0gbwB 4evAh5qi7zlI5XAAHjDEwC0adbxXVQHMT1HJ/bciacKLBKcL1UF8AJhHTcqfkySJO3JunG v0PYy+t1nwd59Xrkl2QzKIhrubSY5LeXzBCfAVzcPXIfRSmnzqU732LdRGym62Bff3tqEG d29WVqupQaHjc4vlOGfc060o0rriCWzSSmbeWX3VQ7LZkF3DHrpOj11Gj2fReg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1620223968; a=rsa-sha256; cv=none; b=svuL9m7g0iXbzwXKlrXZLFsp2MhDpZ8CoMlkXpNqnPPqznFGEKBlD18rwIOO0rEvvD0UD5 WyucqhJgrLz376cbIHilzAnjFMpMYtb2ID/UlYzy2GsfzIJjsFd/RcXdZvC9z9OVPJ0sE0 hx4c3qmT2VEa6GbrSfqRgsug7iegJKOA1DWpqrLLymbv0+nTxBOpwedVz3f3HS7u4LtlzH jcmpjG+a41MStQ0m3MfgYGMZuCnXFYZqeHckwRwkEvUngeYYWigPfxtgTLtdkR12AoBLIp CrWTJiasZgypKA5TEMhdgT9TZeNDbyeGAhr4ihmvhzQ+WHzgWGMZABNNOlqcRA== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=none; 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: -2.46 Authentication-Results: aspmx1.migadu.com; dkim=none; dmarc=none; 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: AEC979690 X-Spam-Score: -2.46 X-Migadu-Scanner: scn0.migadu.com X-TUID: BneLkneN4PxS Hello, Joost Kremers writes: > 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 =org-element-parse-buffer=? That's correct. The citation contains the global prefix and suffix, each reference contains the local prefix and suffix, and the citation key. You can then use functions like `org-cite-get-references' and `org-cite-key-boundaries' on them, in addition to usual `org-element-property'. Regards, -- Nicolas Goaziou