|
From: | Nicolas Goaziou |
Subject: | Re: [O] Bug: org-babel-tangle-comment-links does not start-line but start-point. [9.1.9 (release_9.1.9-65-g5e4542 @ /usr/local/share/emacs/26.2/lisp/org/)] |
Date: | Sat, 24 Aug 2019 22:59:30 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/26.2 (gnu/linux) |
Hello, immanuel <address@hidden> 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
[Prev in Thread] | Current Thread | [Next in Thread] |