Hello,

immanuel <immanuel.litzr...@gmail.com> writes:

> Try this in a buffer (results are also here for quick reference):
>
> #+NAME: start
> #+BEGIN_SRC emacs-lisp :tangle no
>
> (message "start") #+END_SRC
>
> #+NAME: end
> #+BEGIN_SRC emacs-lisp :tangle no
>
> (message "end") #+END_SRC
>
> #+BEGIN_SRC emacs-lisp :tangle output.el :comments noweb :noweb yes
> (progn
> <<start>>
> <<end>>
> )
> #+END_SRC
>
> #+BEGIN_SRC emacs-lisp :tangle no
> (let ((org-babel-tangle-comment-format-beg "start %start-line")
>       (org-babel-tangle-comment-format-end "end %start-line"))
>   (org-babel-tangle-file (buffer-file-name))
>   (with-temp-buffer 
>   (insert-file-contents "output.el")
>   (buffer-string)))
> #+END_SRC
>
>
> #+RESULTS:
>
> #+begin_example
> ;; start 12
> (progn
> ;; start 15
> (message "start")
> ;; end 15
> ;; start 90
> (message "end")
> ;; end 90
> )
> ;; end 12
> #+end_example

Fixed. Thank you.

Regards,

-- 
Nicolas Goaziou

Reply via email to