Thibaut Meyer via "General discussions about Org-mode." <[email protected]> writes:
> I would like to discuss the introduction of an additional hook in > ox-publish.el. > > Right now, there only exists `org-publish-after-publishing-hook' which > runs each time a single file is published. I think the introduction of > an "after-publishing-project" version of the hook would be useful, so > some package could hook into it to add some "per-project" logic. > > This would overlap with `:completion-function', as it would > be run at the same place with the same argument. The benefit is solely > to enable packages to act on projects after publishing, without having > the user to alter his projects' configuration (besides requiring the > package of course). I have no objections. I think that should be an abnormal hook that takes currently published project as an argument. > If nothing stand in the way, what about introducing the > `org-publish-after-publishing-project-hook' hook variable, have it run > in the `org-publish-projects' function and renaming > `org-publish-after-publishing-hook' to > `org-publish-after-publishing-file-hook'? > I would of provide the patch. +1 -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>
