Re: [PATCH] fix hook calling in org-export-remove-or-extract-drawers
Nicolas Goaziou <n.goaziou <at> gmail.com>
2012-05-01 18:18:19 GMT
Bastien <bzg <at> gnu.org> writes:
>> My thought was that you could have multiple hooks in
>> org-export-format-drawer-function and each one could be checking for
>> things like "is this html export", "is the drawer name == PROPERTIES"
>> and could decide to take action and return a string, or perhaps take
>> no action, return nil, and let another hook have a shot at the
> Well, you can implement such checks within the same function :)
> We would need to rename `org-export-format-drawer-function' to
> suggest it can be a list of functions -- I don't want to go into
> this direction right now, I need to double-check what the new
> exporter (contrib/lisp/org-export.el) does wrt this.
> Nicolas, how the new exporter handle this?
There is no global `org-export-format-drawer-function' variable, and
each back-end may provide it. I think the "big four" does it.
Though, it's more a convenience variable provided for compatibility with
legacy exporter. There are other, and more standard, ways to achieve the
same result in the new export engine (filters being one).
Filters are lists of functions, by the way.