emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Nicolas Goaziou <n.goaziou@gmail.com>
Cc: emacs-orgmode mode <emacs-orgmode@gnu.org>
Subject: Re: File-local export filters
Date: Sat, 21 Sep 2013 14:14:46 +0200	[thread overview]
Message-ID: <84C517A6-BFB9-486E-AF2C-9FDA255D66C4@gmail.com> (raw)
In-Reply-To: <877gea2yau.fsf@gmail.com>

[-- Attachment #1: Type: text/plain, Size: 1484 bytes --]


On 21.9.2013, at 13:45, Nicolas Goaziou <n.goaziou@gmail.com> wrote:

> Hello,
> 
> Carsten Dominik <carsten.dominik@gmail.com> writes:
> 
>> I guess this is mostly a request for Nicolas, but maybe others would
>> like to chime in.
>> 
>> Quite often I am in a situation where I want to use filters
>> to customize the export for a specific file.  I was wondering
>> if it would be useful to support a special source code block
>> that can contain code that should be executed before export in
>> a way that a temporary list of export filters is installed
>> for this specific backend and then removed again.
>> 
>> For example, I would like to have special formatting of
>> time stamps in a specific file - I could then use this
>> to install a filter in org-export-filter-timestamp-functions
>> that would do this special formatting, without influencing
>> what happens to other exports.
>> 
>> Have I overlooked an easy way to do this, or would this be
>> something others would like to use as well.
> 
> I didn't check, but I think it is possible to set filter through #+BIND
> keyword? Otherwise, you can try file local variables.

OK, I'll try this.  However, if the code is a bit more extensive, an SRC block would make it more comfortable to maintain this code inside a file.  If I want to write a somewhat complex filter function, it is not convenient to do so in #+BIND line.

- Carsten

> 
> 
> Regards,
> 
> -- 
> Nicolas Goaziou


[-- Attachment #2: Message signed with OpenPGP using GPGMail --]
[-- Type: application/pgp-signature, Size: 455 bytes --]

  reply	other threads:[~2013-09-21 12:15 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-21 11:19 File-local export filters Carsten Dominik
2013-09-21 11:45 ` Nicolas Goaziou
2013-09-21 12:14   ` Carsten Dominik [this message]
2013-09-21 12:44     ` Nicolas Goaziou
2013-09-21 12:54       ` Carsten Dominik
2013-09-21 22:16       ` Summary: " Carsten Dominik
2013-09-23  9:19 ` Rasmus

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=84C517A6-BFB9-486E-AF2C-9FDA255D66C4@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=n.goaziou@gmail.com \
    /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).