From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: File-local export filters Date: Mon, 23 Sep 2013 11:19:59 +0200 Message-ID: <87pprzuc74.fsf@gmx.us> References: <4D2D5EF0-F2CD-4B54-8562-488E43824596@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36540) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VO2JZ-0006BE-As for emacs-orgmode@gnu.org; Mon, 23 Sep 2013 05:20:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VO2JS-0007sy-IA for emacs-orgmode@gnu.org; Mon, 23 Sep 2013 05:20:21 -0400 Received: from plane.gmane.org ([80.91.229.3]:35859) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VO2JS-0007sp-Bh for emacs-orgmode@gnu.org; Mon, 23 Sep 2013 05:20:14 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VO2JR-0007nc-Eq for emacs-orgmode@gnu.org; Mon, 23 Sep 2013 11:20:13 +0200 Received: from dynamic-adsl-94-34-254-81.clienti.tiscali.it ([94.34.254.81]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Sep 2013 11:20:13 +0200 Received: from rasmus by dynamic-adsl-94-34-254-81.clienti.tiscali.it with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Mon, 23 Sep 2013 11:20:13 +0200 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: emacs-orgmode@gnu.org Hi Carsten, Carsten Dominik writes: > Have I overlooked an easy way to do this, or would this be > something others would like to use as well. Can't you identify it by the folder name? Or with a special #+DESCRIPTION or #+KEYWORDS? Like this: #+TITLE: MySpecialFile.org #+begin_src emacs-lisp (defun rasmus/match-buffer (text backend info) "Match only some buffers identified by " (if (and (string-match "MySpecialFile" (plist-get info :input-file)) (org-export-derived-backend-p backend 'latex)) "Match!" text)) (add-to-list 'org-export-filter-final-output-functions 'rasmus/match-buffer) #+end_src Otherwise I'd also bind the value locally and maintain the code in a SETUPFILE or in a * lisp :noexport: heading. –Rasmus -- I almost cut my hair, it happened just the other day