Hi Alan, Alan Schmitt <alan.schm...@polytechnique.org> writes: > Hi Andreas, > > On 2015-09-24 14:14, Andreas Leha <andreas.l...@med.uni-goettingen.de> writes: > >> if all of this is for a single block, you can get away quite cheaply >> with sth along (untested) >> >> #+begin_src emacs-lisp :results silent >> (save-excursion >> ;; tangle >> (org-babel-goto-named-src-block "hello") >> (org-babel-tangle '(4))) >> #+end_src >> >> and make sure this gets executed during export. > > I’ve tried this and somehow it replaces the whole org file with > a version with comments and src block headers removed, and macros > expanded. I have no idea why it does this … >
That's what I feared. So, you better go for the other suggestions in this thread, the hook or calling the export from that same source block -- now making sure not to evaluate the block again. Best, Andreas