emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* 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

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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).