[Top][All Lists]
[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: |
Bastien |
Subject: |
Re: [O] [PATCH] fix hook calling in org-export-remove-or-extract-drawers |
Date: |
Tue, 01 May 2012 19:58:56 +0200 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.1.50 (gnu/linux) |
Hi Bill,
Bill Wishon <address@hidden> 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
> drawer.
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?
> 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.
Yes, `org-export-format-drawer-function' supports only one function.
--
Bastien