Hi,

 I'm trying to define a filter function local to a file for the final
output filter, but it doesn't seem to work.

This works:

#+BEGIN_SRC emacs-lisp :exports results :results none
  (defun hiho (s backend info)
    (message "HiHo")
    s)
  (add-to-list 'org-export-filter-final-output-functions 'hiho)
#+END_SRC

But it destructively changes 'org-export-filter-final-output-functions

Trying to define a file local filter doesn't work:

#+BIND: org-export-filter-final-output-functions (hiho)
#+BEGIN_SRC emacs-lisp :exports results :results none
  (defun hiho (s backend info)
    (message "HiHo")
    s)
#+END_SRC

This is developed based on the explanations in the org manual here:

https://orgmode.org/manual/Advanced-Export-Configuration.html#Filters

What am I doing wrong?

--
Orm


Reply via email to