all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* tangling order
@ 2016-02-16 10:19 Alan Schmitt
  2016-02-16 11:42 ` John Kitchin
  0 siblings, 1 reply; 5+ messages in thread
From: Alan Schmitt @ 2016-02-16 10:19 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 1048 bytes --]

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

[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 472 bytes --]

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

end of thread, other threads:[~2016-02-17 15:43 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-02-16 10:19 tangling order Alan Schmitt
2016-02-16 11:42 ` John Kitchin
2016-02-16 15:22   ` Alan Schmitt
2016-02-16 17:34     ` Charles C. Berry
2016-02-17 15:43       ` Alan Schmitt

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.