From mboxrd@z Thu Jan 1 00:00:00 1970 From: Charles Berry Subject: Re: Filters not working Date: Fri, 9 Aug 2013 18:29:47 +0000 (UTC) Message-ID: References: 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]:52011) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7rS2-0000I2-FY for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 14:30:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1V7rRw-0007GV-50 for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 14:30:14 -0400 Received: from plane.gmane.org ([80.91.229.3]:51614) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1V7rRv-0007E4-VI for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 14:30:08 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1V7rRu-00080v-2k for emacs-orgmode@gnu.org; Fri, 09 Aug 2013 20:30:06 +0200 Received: from 128.54.14.135 ([128.54.14.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Aug 2013 20:30:06 +0200 Received: from ccberry by 128.54.14.135 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 09 Aug 2013 20:30:06 +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 Thomas S. Dye tsdye.com> writes: > > Aloha all, > > After an upgrade from 8.0.3 this morning I'm unable to export a large > writing project that has kept me from reading the ML regularly for the > last few months. It seems that filters that used to work, no longer do > so. For example, > > #+name: tsd-parencites > #+BEGIN_SRC emacs-lisp > (defun tsd-latex-filter-parencites (text backend info) > "Replace parencites placeholders in Beamer/LaTeX export." > (when (memq backend '(beamer latex)) > (replace-regexp-in-string "π" "\\parencites" text nil t))) > (add-to-list 'org-export-filter-plain-text-functions > 'tsd-latex-filter-parencites) > #+END_SRC > > now lets pi slip through into the LaTeX output, giving this error: > > ERROR: Package inputenc Error: Unicode char \u8:π not set up for use with LaTeX. > > My question, is whether this filter is obviously broken given recent > changes to Org-mode? Any pointers greatly appreciated. > Did you upgrade as in 'git pull'? If not, I cannot help. 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 `---- Take a look at "(defstruct (org-export-backend..." in ox.el HTH,