emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

file local filter functions


From: Orm Finnendahl
Subject: file local filter functions
Date: Sun, 28 Jul 2024 21:21:15 +0200

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

[Prev in Thread] Current Thread [Next in Thread]