From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nik Clayton Subject: API for manipulating #+PROPERTY entries? Date: Tue, 5 Mar 2019 07:51:06 +0100 Message-ID: Mime-Version: 1.0 Content-Type: multipart/alternative; boundary="000000000000cc7baf0583534c98" Return-path: Received: from eggs.gnu.org ([209.51.188.92]:40152) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h13v7-0005m6-Az for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 01:51:22 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h13v6-0004QX-GI for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 01:51:21 -0500 Received: from mail-it1-x12c.google.com ([2607:f8b0:4864:20::12c]:35579) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1h13v6-0004Hk-2I for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 01:51:20 -0500 Received: by mail-it1-x12c.google.com with SMTP id 188so2817812itb.0 for ; Mon, 04 Mar 2019 22:51:19 -0800 (PST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: emacs-orgmode --000000000000cc7baf0583534c98 Content-Type: text/plain; charset="UTF-8" Hoi, 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)? I've got some properties that (a) make sense when set for the whole file, and (b) the file contains multiple first level headings (which isn't going to change). 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). N --000000000000cc7baf0583534c98 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
Hoi,

Is there an API for man= ipulating properties that are set in #+PROPERTY lines before the first head= line of a file (i.e., not in a property drawer)?

I= 've got some properties that (a) make sense when set for the whole file= , and (b) the file contains multiple first level headings (which isn't = going to change).

Using org-entry-put when point i= s before the first headline throws a "Before first headline" erro= r (when when the #+PROPERTY line already exists and I want to update an exi= sting entry).

N
--000000000000cc7baf0583534c98--