emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nicolas Goaziou <n.goaziou@gmail.com>
To: Bastien <bzg@gnu.org>
Cc: emacs-orgmode@gnu.org, Bill Wishon <bill@wishon.org>
Subject: Re: [PATCH] fix hook calling in org-export-remove-or-extract-drawers
Date: Tue, 01 May 2012 20:18:19 +0200	[thread overview]
Message-ID: <87r4v3kbo4.fsf@gmail.com> (raw)
In-Reply-To: <874nrzdbq7.fsf@gnu.org> (Bastien's message of "Tue, 01 May 2012 19:58:56 +0200")

Hello,

Bastien <bzg@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
>> 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?

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.


Regards,

-- 
Nicolas Goaziou

  parent reply	other threads:[~2012-05-01 18:21 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-05-01  1:20 [PATCH] fix hook calling in org-export-remove-or-extract-drawers Bill Wishon
2012-05-01 10:01 ` Bastien
2012-05-01 14:46   ` Bill Wishon
2012-05-01 17:58     ` Bastien
2012-05-01 18:02       ` Bill Wishon
2012-05-01 18:18       ` Nicolas Goaziou [this message]
2012-05-01 18:29         ` Bill Wishon
2012-05-02 12:35           ` Nicolas Goaziou

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87r4v3kbo4.fsf@gmail.com \
    --to=n.goaziou@gmail.com \
    --cc=bill@wishon.org \
    --cc=bzg@gnu.org \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).