emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] tangle on export


From: Andreas Leha
Subject: Re: [O] tangle on export
Date: Thu, 24 Sep 2015 14:43:43 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (darwin)

Hi Alan,

Alan Schmitt <address@hidden> writes:
> Hi Andreas,
>
> On 2015-09-24 14:14, Andreas Leha <address@hidden> 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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]