[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] Literate Programming - Continue a Source Block?
From: |
Neeum Zawan |
Subject: |
Re: [O] Literate Programming - Continue a Source Block? |
Date: |
Tue, 14 Jun 2011 22:17:09 -0700 |
Eric Schulte <address@hidden> writes:
> Could you try the attached example file? I first evaluated the
> following elisp code to set the combination variable's value to append.
Your example works if there are no noweb references.
See the modified one where I have noweb references. Note that when
expanding the reference, it inserts only the first block it finds.
#+begin_src emacs-lisp :tangle yes :noweb yes
<<foo>>
Random text
<<bar>>
#+end_src
* continued code blocks
:PROPERTIES:
:tangle: yes
:comments: yes
:END:
#+srcname: foo
#+begin_src emacs-lisp
(message "foo:%S" 1)
#+end_src
#+begin_src emacs-lisp
(message "un-named")
#+end_src
#+srcname: bar
#+begin_src emacs-lisp
(message "bar:%S" 1)
#+end_src
#+srcname: foo
#+begin_src emacs-lisp
(message "foo:%S" 2)
#+end_src
#+srcname: bar
#+begin_src emacs-lisp
(message "bar:%S" 2)
#+end_src
#+begin_src emacs-lisp :tangle no :results silent
(with-temp-buffer
(insert-file-contents "scraps.el")
(eval-buffer))
#+end_src
- Re: [O] Literate Programming - Continue a Source Block?, (continued)
- Re: [O] Literate Programming - Continue a Source Block?, Achim Gratz, 2011/06/14
- Re: [O] Literate Programming - Continue a Source Block?, Eric Schulte, 2011/06/15
- Re: [O] Literate Programming - Continue a Source Block?, Achim Gratz, 2011/06/15
- Re: [O] Literate Programming - Continue a Source Block?, Eric Schulte, 2011/06/16
- Re: [O] Literate Programming - Continue a Source Block?, Neeum Zawan, 2011/06/15
- Re: [O] Literate Programming - Continue a Source Block?, Neeum Zawan, 2011/06/10
- Re: [O] Literate Programming - Continue a Source Block?, Neeum Zawan, 2011/06/10
- Re: [O] Literate Programming - Continue a Source Block?, Eric Schulte, 2011/06/11
- Re: [O] Literate Programming - Continue a Source Block?, Neeum Zawan, 2011/06/12
- Re: [O] Literate Programming - Continue a Source Block?, Eric Schulte, 2011/06/13
- Re: [O] Literate Programming - Continue a Source Block?,
Neeum Zawan <=
- Re: [O] Literate Programming - Continue a Source Block?, Eric Schulte, 2011/06/15
- Re: [O] Literate Programming - Continue a Source Block?, Neeum Zawan, 2011/06/15
- Re: [O] Literate Programming - Continue a Source Block?, Eric Schulte, 2011/06/16
- Re: [O] Literate Programming - Continue a Source Block?, Neeum Zawan, 2011/06/17
- Re: [O] Literate Programming - Continue a Source Block?, Eric Schulte, 2011/06/17
- Re: [O] Literate Programming - Continue a Source Block?, Sebastien Vauban, 2011/06/17
- Re: [O] Literate Programming - Continue a Source Block?, Neeum Zawan, 2011/06/19
- Re: [O] Literate Programming - Continue a Source Block?, Olaf.Hamann, 2011/06/16