From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [ox] possible to modify org-export-document-properties OTG Date: Sun, 22 Mar 2015 00:10:52 +0100 Message-ID: <877fua3q0z.fsf@nicolasgoaziou.fr> References: <87vbi030eb.fsf@gmx.us> <87k2yg115l.fsf@nicolasgoaziou.fr> <87iodytfza.fsf@gmx.us> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49475) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZSWV-0006SK-Ti for emacs-orgmode@gnu.org; Sat, 21 Mar 2015 19:09:44 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YZSWQ-00031k-Tm for emacs-orgmode@gnu.org; Sat, 21 Mar 2015 19:09:43 -0400 Received: from relay6-d.mail.gandi.net ([2001:4b98:c:538::198]:57031) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YZSWQ-00031U-OV for emacs-orgmode@gnu.org; Sat, 21 Mar 2015 19:09:38 -0400 In-Reply-To: <87iodytfza.fsf@gmx.us> (rasmus@gmx.us's message of "Wed, 18 Mar 2015 17:42:01 +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: Rasmus Cc: emacs-orgmode@gnu.org Rasmus writes: > Nicolas Goaziou writes: > >> Document properties are keywords where `org-element-context' is allowed >> to return an object. It doesn't make sense to add random keywords >> specific to some export back-ends to the list. > > I think something like SUBJECT in ox-koma-letter makes sense. It seems we are failing to communicate. I have nothing against SUBJECT being parsed in "ox-koma-letter". However, `org-element-document-properties' are keywords expected to be parsed in _every_ export back-end. This is not for SUBJECT. >> At some point, I thought about adding a `parsed' behaviour to >> `org-export-options-alist' as a shortcut. > > Presumably you'd want to be able to toggle it for elements of > export-options. I mean to use `parsed' at the BEHAVIOR position in `org-export-options-alist' entries. So, obviously, this is triggered per keyword. > I don't understand why an export setting would affect an element > interpretation such as org-element-map. Probably I have something > different in mind than you. If you map over a parse tree, e.g., looking for bold objects, it is a bit tricky to tell `org-element-map' that SUBJECT is no longer a regular keyword but now possibly contains objects. OTOH, we can consider that SUBJECT is still a regular keyword, and that the property the keyword sets (e.g., :koma-letter-subject) contains the objects. In this case, it is no longer ambiguous for `org-element-map' and al., and `parsed' becomes an interesting shortcut. Regards,