emacs-orgmode
[Top][All Lists]
Advanced

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

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


From: Sébastien Vauban
Subject: [Orgmode] Re: [babel] Painless integration of source blocks with language
Date: Mon, 17 Jan 2011 23:44:14 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (windows-nt)

Hi Seth,

Seth Burleigh wrote:
> On Sun, Jan 16, 2011 at 9:31 AM, Eric Schulte <span 
> dir="ltr"><mailto:address@hidden></span> wrote:

Please try using a decent sender, or at least no HTML. I know this cannot be
obvious, though, but look at the results:

> #+source: wrappable<br>
> #+begin_src emacs-lisp<br>
>  .(setq x (+ 4 x))
> #+end_src
>
> #+begin_src emacs-lisp :comments noweb :noweb yes :tangle yes<br>
>  .(let ((x 1))<br>
>  . .(message &quot;x=%s&quot; x)<br>
>  . .&lt;&lt;wrappable&gt;&gt;<br>
>  . .(message &quot;x=%s&quot; x))<br>
> #+end_src<br>
>
> which tangles out the following emacs-lisp
> #+begin_src emacs-lisp<br>
>  .;; 
> [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%20comments][wrap-noweb-references-in-comments:2]]<br>
>  .(let ((x 1))<br>
>  . .(message &quot;x=%s&quot; x)<br>
>  . .;; 
> [[file:~/src/babel-dev/scraps.org::*wrap%20noweb%20references%20in%20comments][wrappable]]<br>
>  . .(setq x (+ 4 x))<br>
>  . .;; wrappable ends here<br>
>  . .(message &quot;x=%s&quot; x))<br>
>  .;; wrap-noweb-references-in-comments:2 ends here<br>
> #+end_src<br>
>
> Cheers -- Eric
> </blockquote>Cool! Does it yet support detangling? I tried it out and it said 
> i wasnt in a tangle code.

Your cursor must be on a code line, not on a special "comments" line. I've had
the same behavior once. Just move down your cursor one or two lines away...

Best regards,
  Seb

-- 
Sébastien Vauban




reply via email to

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