* file local filter functions
@ 2024-07-28 19:21 Orm Finnendahl
2024-07-28 19:56 ` András Simonyi
0 siblings, 1 reply; 3+ messages in thread
From: Orm Finnendahl @ 2024-07-28 19:21 UTC (permalink / raw)
To: Org mailing list
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: file local filter functions
2024-07-28 19:21 file local filter functions Orm Finnendahl
@ 2024-07-28 19:56 ` András Simonyi
2024-07-29 6:49 ` Orm Finnendahl
0 siblings, 1 reply; 3+ messages in thread
From: András Simonyi @ 2024-07-28 19:56 UTC (permalink / raw)
To: Org mailing list
Dear All,
On Sun, 28 Jul 2024 at 21:22, Orm Finnendahl
<orm.finnendahl@selma.hfmdk-frankfurt.de> wrote:
>
> 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
a long shot, but maybe you haven't set the variable
=org-export-allow-bind-keywords= to a non-nil value?
best wishes,
András
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2024-07-29 6:50 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2024-07-28 19:21 file local filter functions Orm Finnendahl
2024-07-28 19:56 ` András Simonyi
2024-07-29 6:49 ` Orm Finnendahl
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.