emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <mail@nicolasgoaziou.fr>
To: Nik Clayton <nik@ngo.org.uk>
Cc: emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: API for manipulating #+PROPERTY entries?
Date: Tue, 05 Mar 2019 08:47:07 +0100	[thread overview]
Message-ID: <875zsx3gqs.fsf@nicolasgoaziou.fr> (raw)
In-Reply-To: <CAKJTzL5X3_yZ38Ns8M886FYfT4k4+wLxxLTYcgTBKQH7V3-JJA@mail.gmail.com> (Nik Clayton's message of "Tue, 5 Mar 2019 07:51:06 +0100")

Hello,

Nik Clayton <nik@ngo.org.uk> writes:

> Is there an API for manipulating properties that are set in #+PROPERTY
> lines before the first headline of a file (i.e., not in a property
> drawer)?

There is no API for keywords.

> Using org-entry-put when point is before the first headline throws a
> "Before first headline" error (when when the #+PROPERTY line already exists
> and I want to update an existing entry).

`org-entry-put' is for node properties. Those do not necessary have
a keyword equivalent. Reciprocally, some keywords cannot be translated
into node properties.

Regards,

-- 
Nicolas Goaziou

  reply	other threads:[~2019-03-05  7:47 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-03-05  6:51 API for manipulating #+PROPERTY entries? Nik Clayton
2019-03-05  7:47 ` Nicolas Goaziou [this message]
2019-03-05 18:38 ` John Kitchin

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=875zsx3gqs.fsf@nicolasgoaziou.fr \
    --to=mail@nicolasgoaziou.fr \
    --cc=emacs-orgmode@gnu.org \
    --cc=nik@ngo.org.uk \
    /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).