From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: [ox] possible to modify org-export-document-properties OTG Date: Tue, 17 Mar 2015 01:58:36 +0100 Message-ID: <87vbi030eb.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:45130) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXfqM-0004Fp-Fj for emacs-orgmode@gnu.org; Mon, 16 Mar 2015 20:58:51 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YXfqH-00050P-H7 for emacs-orgmode@gnu.org; Mon, 16 Mar 2015 20:58:50 -0400 Received: from plane.gmane.org ([80.91.229.3]:43484) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YXfqH-00050K-AJ for emacs-orgmode@gnu.org; Mon, 16 Mar 2015 20:58:45 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YXfqE-0003R6-Ej for emacs-orgmode@gnu.org; Tue, 17 Mar 2015 01:58:42 +0100 Received: from 46.166.188.232 ([46.166.188.232]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Mar 2015 01:58:42 +0100 Received: from rasmus by 46.166.188.232 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 17 Mar 2015 01:58:42 +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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hi, Is it possible to modify or extend org-export-document-properties on the go? And would it be OK? From the docstring of ox-version version of document-properties I would say 'yes'. I'm not sure when reading the docstrig of org-element version. Or should org-element-parse-secondary-string be used with appropriate limitations? It would be useful 'cause it's an easy way to have a property parsed. In ox-koma-letter.el it would make sense to make #+SUBJECT a document property (ATM org-syntax isn't interpreted). In some backends it would probably also make sense to make #+KEYWORDS parsed. I'm also working on a patch to add #+SUBTITLE, which would also benefit from being easily added as a document-property. —Rasmus -- Lasciate ogni speranza, voi che leggete questo.