emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* problem with org-map-entries and the doc for export hooks
@ 2023-06-07 15:59 Victor A. Stoichita
  2023-06-07 17:30 ` Ihor Radchenko
  0 siblings, 1 reply; 5+ messages in thread
From: Victor A. Stoichita @ 2023-06-07 15:59 UTC (permalink / raw)
  To: Org-mode

Greetings all!

I’m trying to use the example given here in the manual for "Export
hooks": https://orgmode.org/manual/Advanced-Export-Configuration.html

--8<---------------cut here---------------start------------->8---
(defun my-headline-removal (backend)
  "Remove all headlines in the current buffer.
BACKEND is the export back-end being used, as a symbol."
   (lambda () (delete-region (point) (line-beginning-position 2)))))

(add-hook 'org-export-before-parsing-hook #'my-headline-removal)
--8<---------------cut here---------------end--------------->8---

However the export process hangs indefinitely emacs after evaluating this.
I have to C-g to quit. 
The same happens with the newer org-export-before-parsing-functions
instead of org-export-before-parsing-hook.

Is there something else that needs to be updated for the example to work?


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2023-06-09  7:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-06-07 15:59 problem with org-map-entries and the doc for export hooks Victor A. Stoichita
2023-06-07 17:30 ` Ihor Radchenko
2023-06-07 20:20   ` Victor A. Stoichita
2023-06-08 13:22     ` Ihor Radchenko
2023-06-09  7:01       ` Victor A. Stoichita

Code repositories for project(s) associated with this public inbox


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).