Derek Chen-Becker <[email protected]> writes: > Subject: [PATCH] Add new after-includes hook for org export
The commit message is a bit off. We usually do something like org-export: Add new org-export-after-includes-functions hook > Provide a new hook that runs after include keywords, but before macros and > Babel code. > > * doc/org-manual.org: Update the org-export hooks section to describe the > new hook in relation to the other existing hooks. ORG-NEWS should be updated as well. > * lisp/org-table.el (orgtbl-to-generic): Disable the new hook during table > export just as we do with other hooks. This leads to compiler warning that should be suppressed. > +(defvar org-export-after-includes-functions nil > + "Abnormal hook run after includes but before macros. > + > +This is run after include keywords but before macros have been > +expanded and Babel code blocks executed, on a copy of the original > +buffer being exported. Visibility and narrowing are preserved. Point > +is at the beginning of the buffer.") The docstring should explain the arguments passed to the abnormal hook. -- 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>
