[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] tangling order
From: |
Alan Schmitt |
Subject: |
[O] tangling order |
Date: |
Tue, 16 Feb 2016 11:19:43 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/24.5 (darwin) |
Hello,
I thought the order source blocks were tangled was the order of the
file. I just discovered this is not necessarily the case. This file:
--8<---------------cut here---------------start------------->8---
#+BEGIN_SRC foob :tangle foo.ml
let x = 1
#+END_SRC
#+BEGIN_SRC fooa :tangle foo.ml
let x = 2
#+END_SRC
--8<---------------cut here---------------end--------------->8---
is tangled to this file
--8<---------------cut here---------------start------------->8---
let x = 2
let x = 1
--8<---------------cut here---------------end--------------->8---
It seems that the language name determines the order of tangling in this
case. Is there a way to disable this and use file order?
(This question comes up in the setting of a more complex example, where
I'm using different language names to specify different default headers,
and this feature is breaking the tangling of the files.)
Thanks,
Alan
--
OpenPGP Key ID : 040D0A3B4ED2E5C7
Monthly Athmospheric CO₂ (2016-01, Mauna Loa Obs.): 402.52
signature.asc
Description: PGP signature
- [O] tangling order,
Alan Schmitt <=