From mboxrd@z Thu Jan 1 00:00:00 1970 From: Carsten Dominik Subject: Re: File-local export filters Date: Sat, 21 Sep 2013 14:14:46 +0200 Message-ID: <84C517A6-BFB9-486E-AF2C-9FDA255D66C4@gmail.com> References: <4D2D5EF0-F2CD-4B54-8562-488E43824596@gmail.com> <877gea2yau.fsf@gmail.com> Mime-Version: 1.0 (Mac OS X Mail 6.5 \(1508\)) Content-Type: multipart/signed; boundary="Apple-Mail=_B7C05FFC-B420-4F49-A8AA-99204011E965"; protocol="application/pgp-signature"; micalg=pgp-sha1 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:50033) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNM5S-0003OE-Gm for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 08:15:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VNM5K-00044H-2j for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 08:14:58 -0400 Received: from mail-ea0-x22b.google.com ([2a00:1450:4013:c01::22b]:47383) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VNM5J-00044D-Qp for emacs-orgmode@gnu.org; Sat, 21 Sep 2013 08:14:49 -0400 Received: by mail-ea0-f171.google.com with SMTP id n15so776071ead.16 for ; Sat, 21 Sep 2013 05:14:49 -0700 (PDT) In-Reply-To: <877gea2yau.fsf@gmail.com> List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Nicolas Goaziou Cc: emacs-orgmode mode --Apple-Mail=_B7C05FFC-B420-4F49-A8AA-99204011E965 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=us-ascii On 21.9.2013, at 13:45, Nicolas Goaziou wrote: > Hello, >=20 > Carsten Dominik writes: >=20 >> I guess this is mostly a request for Nicolas, but maybe others would >> like to chime in. >>=20 >> 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. >>=20 >> 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. >>=20 >> Have I overlooked an easy way to do this, or would this be >> something others would like to use as well. >=20 > 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 >=20 >=20 > Regards, >=20 > --=20 > Nicolas Goaziou --Apple-Mail=_B7C05FFC-B420-4F49-A8AA-99204011E965 Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- iQEcBAEBAgAGBQJSPY23AAoJEO+gg/nAZuwMlTQH/A5jS/GrgmLmu++0VdWXgBqQ /1ESsuFlnBHEnNinOvGkpOKs25gJ5fOu6AyVU8w0bnfd2QAieqBQkyv53D0MSA0+ 2KrlsblDaW7or/4N4X4duFtucjp9X/WVe9iHIZpJfXw6ZvamaypK317Pj9xmgypo lacS8aoy5vuDEXP6H/PMC/C3X2gFkrgEVYEUEO5aA7BsHJI9oRZh3NQZoNOKl0It T40GY6CURvSy0twgOpoApS4zvua4+/sADXfVNqcR2qNqCfz2TQksgkpyAlXKOX/Q DZam1hOhXdHHKCkqO0fRL/K/zeEhNdE2wZnuxSEw7vNb62XUZwjd/MFNcZ90Aak= =9Mi1 -----END PGP SIGNATURE----- --Apple-Mail=_B7C05FFC-B420-4F49-A8AA-99204011E965--