emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Joost Kremers <joostkremers@fastmail.fm>
Cc: emacs-orgmode@gnu.org
Subject: Re: Question about citation processors [wip-cite branch]
Date: Wed, 05 May 2021 16:09:52 +0200	[thread overview]
Message-ID: <8735v15l1r.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <87y2cufequ.fsf@fastmail.fm> (Joost Kremers's message of "Tue, 04 May 2021 21:17:22 +0200")

Hello,

Joost Kremers <joostkremers@fastmail.fm> 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


      reply	other threads:[~2021-05-05 14:12 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-05-04 10:41 Question about citation processors [wip-cite branch] Joost Kremers
2021-05-04 13:45 ` Bruce D'Arcus
2021-05-04 14:07   ` Joost Kremers
2021-05-04 15:04     ` Bruce D'Arcus
2021-05-04 15:27       ` Joost Kremers
2021-05-04 19:34         ` Denis Maier
2021-05-04 20:04           ` Joost Kremers
2021-05-04 15:10     ` Bruce D'Arcus
2021-05-04 15:22       ` Joost Kremers
2021-05-04 15:39         ` Bruce D'Arcus
2021-05-04 16:22 ` Nicolas Goaziou
2021-05-04 19:17   ` Joost Kremers
2021-05-05 14:09     ` Nicolas Goaziou [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8735v15l1r.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=joostkremers@fastmail.fm \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).