From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: [wish] Execute preparation-function before getting base files Date: Tue, 13 Oct 2015 21:41:50 +0200 Message-ID: <87lhb6zhc1.fsf@nicolasgoaziou.fr> References: <87wpuubr4j.fsf@steel.i-did-not-set--mail-host-address--so-tickle-me> <87612d394l.fsf@ucl.ac.uk> <874mhw89s4.fsf@steel.i-did-not-set--mail-host-address--so-tickle-me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50628) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm5Qf-0002TH-Qi for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:40:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zm5Qe-0002Jm-Iv for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:40:09 -0400 Received: from relay3-d.mail.gandi.net ([2001:4b98:c:538::195]:53127) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zm5Qe-0002IU-Dc for emacs-orgmode@gnu.org; Tue, 13 Oct 2015 15:40:08 -0400 In-Reply-To: <874mhw89s4.fsf@steel.i-did-not-set--mail-host-address--so-tickle-me> (Arun Isaac's message of "Mon, 12 Oct 2015 19:32:35 +0530") 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: Arun Isaac Cc: Emacs orgmode Hello, Arun Isaac writes: > org-export-before-{processing,parsing} hooks are only useful when I have > existing source files and I want to modify them in some way before I > {process,parse} them. In my case, the source files don't exist at all, > before my preparation-function is run. > > Regarding the preparation-function, the use case described in the manual > is for running make to update files before publishing. > > http://orgmode.org/manual/Sources-and-destinations.html > > Therefore, I think it makes sense only if the source filenames are collected > using org-publish-get-base-files after the preparation-function is run. > > With the above logic, maybe the order of execution can actually be > considered a bug? I made the change in master. Thank you. Regards, -- Nicolas Goaziou