From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: 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 Message-ID: <87y2zixost.fsf@nicolasgoaziou.fr> References: <8736hqki1z.fsf@gmail.com> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:470:142:3::10]:32819) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1i1d8L-0003Qr-W3 for emacs-orgmode@gnu.org; Sat, 24 Aug 2019 16:59:38 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1i1d8K-0002St-37 for emacs-orgmode@gnu.org; Sat, 24 Aug 2019 16:59:37 -0400 Received: from relay1-d.mail.gandi.net ([217.70.183.193]:45925) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1i1d8J-0002Rt-Ep for emacs-orgmode@gnu.org; Sat, 24 Aug 2019 16:59:35 -0400 In-Reply-To: <8736hqki1z.fsf@gmail.com> (immanuel's message of "Sat, 24 Aug 2019 11:51:20 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: "Emacs-orgmode" To: immanuel Cc: emacs-orgmode@gnu.org Hello, immanuel 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 > <> > <> > ) > #+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