From mboxrd@z Thu Jan 1 00:00:00 1970 From: tsd@tsdye.com (Thomas S. Dye) Subject: Re: Filters not working Date: Fri, 09 Aug 2013 09:39:15 -1000 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:40254) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7sXP-0000O5-Kd for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 15:39:57 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7sXG-0000sb-BO for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 15:39:51 -0400 Received: from oproxy7-pub.mail.unifiedlayer.com ([67.222.55.9]:57756) by eggs.gnu.org with smtp (Exim 4.71) (envelope-from ) id 1V7sXG-0000sC-4T for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 15:39:42 -0400 In-Reply-To: (Charles Berry's message of "Fri, 9 Aug 2013 18:29:47 +0000 (UTC)") 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: Charles Berry Cc: emacs-orgmode@gnu.org Charles Berry writes: > Did you upgrade as in 'git pull'? If not, I cannot help. Yes, Org-mode version 8.0.7 (release_8.0.7-377-gef2d47 @ /Users/dk/.emacs.d/src/org-mode/lisp/) > > If so, > > This bit of org-mode: > > ,---- > | * headline > | > | > | #+BEGIN_SRC emacs-lisp :eval yes :exports both > | (defun test-filter-final (text back-end info) > | "What is back-end?" > | (concat "type-of back-end: " > | (format "%S" (type-of back-end)) > | "\nname of back-end: " > | (symbol-name (org-export-backend-name back-end)))) > | > | (add-to-list 'org-export-filter-final-output-functions 'test-filter-final) > | #+END_SRC > `---- > > will export via > > C-c C-e l L y > > as > > ,---- > | type-of back-end: vector > | name of back-end: latex > `---- Yes, it does. > > Take a look at "(defstruct (org-export-backend..." in ox.el OK, I had a look at org-export-backend, but not sure what I'm looking for in particular. I did note that you don't test back-end directly, but instead look at org-export-backend-name. Perhaps this is what Nicolas means by "Filters defined here shouldn't make a back-end test, as it may prevent back-ends derived from this one to behave properly"? However, changing my filter so it uses org-export-backend-name doesn't seem to change anything. Or, was I supposed to learn something else from ox.el? Thanks for your help. All the best, Tom -- Thomas S. Dye http://www.tsdye.com