* How to refer to parsed element in export-filter?
@ 2014-10-11 10:36 Thorsten Jolitz
0 siblings, 0 replies; only message in thread
From: Thorsten Jolitz @ 2014-10-11 10:36 UTC (permalink / raw)
To: emacs-orgmode
Hi List,
in an exporter I would like to have a filter function (for headlines)
that acts conditional on the back-end and on the headline's properties
(say its :todo-keyword). But is it possible to find the internal
representation of the filtered headline in the communication channel?
#+BEGIN_SRC emacs-lisp
(defun org-xyz-headline-filter (headline back-end info)
"Filter transcoded output for headlines."
(when (and (eq back-end 'xyz)
(member
(org-element-property
:todo-keyword
(FIND-CURR-HEADLINE
(plist-get info :parse-tree)))
(org-xyz-keywords)))...))
#+END_SRC
I cannot figure out how to implement 'FIND-CURR-HEADLINE' in the stub
above. Do I have to do the filtering directly in the transcoder function
instead, or is there a way to make references to the element's
parse-tree in a filter function?
--
cheers,
Thorsten
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-10-11 10:37 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-10-11 10:36 How to refer to parsed element in export-filter? Thorsten Jolitz
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.