emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [Orgmode] [babel] Painless integration of source blocks with languag


From: Seth Burleigh
Subject: Re: [Orgmode] [babel] Painless integration of source blocks with language
Date: Mon, 17 Jan 2011 16:15:47 -0600



On Sun, Jan 16, 2011 at 9:31 AM, Eric Schulte <address@hidden> wrote:

#+source: wrappable
#+begin_src emacs-lisp
 (setq x (+ 4 x))
#+end_src

#+begin_src emacs-lisp :comments noweb :noweb yes :tangle yes
 (let ((x 1))
   (message "x=%s" x)
   <<wrappable>>
   (message "x=%s" x))
#+end_src

which tangles out the following emacs-lisp
#+begin_src emacs-lisp
 ;; [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%20comments][wrap-noweb-references-in-comments:2]]
 (let ((x 1))
   (message "x=%s" x)
   ;; [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%20comments][wrappable]]
   (setq x (+ 4 x))
   ;; wrappable ends here
   (message "x=%s" x))
 ;; wrap-noweb-references-in-comments:2 ends here
#+end_src

Cheers -- Eric


Cool! Does it yet support detangling? I tried it out and it said i wasnt in a tangle code.


reply via email to

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