From mboxrd@z Thu Jan 1 00:00:00 1970 From: Arun Isaac Subject: Re: [wish] Execute preparation-function before getting base files Date: Mon, 12 Oct 2015 19:32:35 +0530 Message-ID: <874mhw89s4.fsf@steel.i-did-not-set--mail-host-address--so-tickle-me> References: <87wpuubr4j.fsf@steel.i-did-not-set--mail-host-address--so-tickle-me> <87612d394l.fsf@ucl.ac.uk> Mime-Version: 1.0 Content-Type: multipart/signed; boundary="=-=-="; micalg=pgp-sha256; protocol="application/pgp-signature" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46264) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zldgy-0001nv-Ag for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 10:03:13 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Zldgt-000253-B9 for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 10:03:08 -0400 Received: from mail-pa0-x22e.google.com ([2607:f8b0:400e:c03::22e]:33928) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Zldgt-00024R-5k for emacs-orgmode@gnu.org; Mon, 12 Oct 2015 10:03:03 -0400 Received: by padhy16 with SMTP id hy16so155072873pad.1 for ; Mon, 12 Oct 2015 07:03:02 -0700 (PDT) Received: from steel ([223.227.109.22]) by smtp.gmail.com with ESMTPSA id si10sm18765500pab.15.2015.10.12.07.02.45 for (version=TLSv1.2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Oct 2015 07:03:00 -0700 (PDT) In-Reply-To: <87612d394l.fsf@ucl.ac.uk> (Eric S. Fraga's message of "Sun, 11 Oct 2015 13:03:22 +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 --=-=-= Content-Type: text/plain 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? --=-=-= Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2 iQEcBAEBCAAGBQJWG717AAoJEC4l7othgCuzAY8H/iJCrBMGyYuSR7F/YtFDMyUJ 6JaubW0zTlghV8EGFW+eBBem8m+mYcAJ7MwAe6gTi8hwAJFyO8nxwLIQAwEv3ZtX /rIFKD6OHVU9O7Q9yHZeOV4/VMpgRlifjPZ2Cd0HmTrph0qZqGzqpSxQStksNVW9 jOljCdhDbhyBfX3pj/UbgnRfMffi/hxfZwpvVW6x3Ujgvs0s3ZNFbUbiNNQ/PCWd ntGSwke36XhusvC6Ny2I0zDomIQm0nPjG7DzzcfENIwnCQraKlA8YuCMrwuKuoLF EFQzVnuAqkd6vvP4Dq7NH7NtMdH1X6uOuJ37XPeBHPbMfUAKfrsBBbqlgI7WfgI= =Tyel -----END PGP SIGNATURE----- --=-=-=--