Re: [O] [wish] Execute preparation-function before getting base files
It works now. Thanks! signature.asc Description: PGP signature
Re: [O] [wish] Execute preparation-function before getting base files
Arun Isaac writes: > I think a bug has been introduced by your change. > > In org-publish-projects, the variable project-plist is accessed (to get > the preparation-function) before it is bound. So, I am getting a > (void-variable project-plist) error. Oops. Fixed. Thank you. Regards,
Re: [O] [wish] Execute preparation-function before getting base files
Nicolas Goaziou writes: > I made the change in master. I think a bug has been introduced by your change. In org-publish-projects, the variable project-plist is accessed (to get the preparation-function) before it is bound. So, I am getting a (void-variable project-plist) error.
Re: [O] [wish] Execute preparation-function before getting base files
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
Re: [O] [wish] Execute preparation-function before getting base files
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? signature.asc Description: PGP signature
Re: [O] [wish] Execute preparation-function before getting base files
On Saturday, 10 Oct 2015 at 22:25, Arun Isaac wrote: > In org-publish-projects, it would be good if the preparation-function is > executed before getting base files using org-publish-get-base-files. I'm not sure of the actual order of execution but it could be that one or other of the org-export-before-{processing,parsing}-hook hooks could do what you want? -- : Eric S Fraga (0xFFFCF67D), Emacs 25.0.50.2, Org release_8.3.2-161-gd2ac25
[O] [wish] Execute preparation-function before getting base files
In org-publish-projects, it would be good if the preparation-function is executed before getting base files using org-publish-get-base-files. In one of my use cases, my preparation-function generates some source files which are then to be published by the publishing-function. But, since the base filenames are collected before the preparation-function is executed, the publishing-function does not see the generated source files. Right now, I'm calling my preparation-function manually before calling org-publish-project, but it would be nice if I didn't have to do it this way. Thanks, Arun Isaac. signature.asc Description: PGP signature