Hi Bastien,

I'll try to find a different mail client next time.

On Tue, May 1, 2012 at 3:01 AM, Bastien <b...@gnu.org> wrote:

> I don't really understand why `run-hook-with-args-until-success' is
> needed here.  Or `org-export-format-drawer-function' returns a string,
> or it returns nil, in case we fall back on `org-export-format-drawer'.
>

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 drawer.  The other
thing with funcall here is that if you use add-hook to add your function to
that hook it creates a list of functions, and when funcall is called on a
list of functions instead of an individual function it is an error.

Best,
~>Bill

Reply via email to