From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: API for manipulating #+PROPERTY entries? Date: Tue, 05 Mar 2019 08:47:07 +0100 Message-ID: <875zsx3gqs.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([209.51.188.92]:50507) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1h14nD-0002u6-6g for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 02:47:15 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1h14nC-0004Ol-DY for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 02:47:15 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:33001) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1h14nC-0004Mh-50 for emacs-orgmode@gnu.org; Tue, 05 Mar 2019 02:47:14 -0500 In-Reply-To: (Nik Clayton's message of "Tue, 5 Mar 2019 07:51:06 +0100") 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: Nik Clayton Cc: emacs-orgmode Hello, Nik Clayton 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