emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] [PATCH] fix hook calling in org-export-remove-or-extract-drawers


From: Bill Wishon
Subject: Re: [O] [PATCH] fix hook calling in org-export-remove-or-extract-drawers
Date: Tue, 1 May 2012 07:46:56 -0700

Hi Bastien,

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

On Tue, May 1, 2012 at 3:01 AM, Bastien <address@hidden> 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

[Prev in Thread] Current Thread [Next in Thread]