From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: Parsing property drawers in subtree scope exports Date: Sat, 01 Jul 2017 18:08:06 +0200 Message-ID: <87injc2l95.fsf@nicolasgoaziou.fr> References: <87y3s84mxp.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:47515) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRKwQ-0005r9-3x for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 12:08:14 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRKwM-0000yl-Tg for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 12:08:14 -0400 Received: from relay2-d.mail.gandi.net ([2001:4b98:c:538::194]:42953) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dRKwM-0000y1-OE for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 12:08:10 -0400 In-Reply-To: (Kaushal Modi's message of "Sat, 01 Jul 2017 13:09:37 +0000") 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: Kaushal Modi Cc: emacs-org list Kaushal Modi writes: > I didn't follow that. Do you mean that the "EXPORT_" is a special > prefix? I do. See (info "(org) Export settings"). > Should that be added to these? > > ===== > :options-alist '((:hugo-front-matter-format "HUGO_FRONT_MATTER_FORMAT" nil > org-hugo-front-matter-format) > (:hugo-tags "HUGO_TAGS" nil nil) > ===== If you set this, you can access to EXPORT_HUgo_TAGS property with :hugo-tags. > I already tried above, but I don't know how to get the ":HUGO_TAGS" value > from the property drawer, in subtreep export only, in the body filter (with > only body and info available). (plist-get info :hugo-tags) > Otherwise, you simply need to retrieve it and store it before calling >> `org-export-to-file' or whatever. > > > Hmm, will give this a try.. may be look at the pre export hook? You can also do that, if you don't use the "EXPORT_" prefix above. However, you need to expand the buffer first, because it will be narrowed to the current subtree. Regards,