From mboxrd@z Thu Jan 1 00:00:00 1970 From: Simon Castellan Subject: `ob-babel-expand-noweb-references' does not take into account `org-babel-tangle-uncomment-comments' Date: Sat, 19 Dec 2015 12:58:22 +0100 Message-ID: <874mfebqg1.fsf@goyave.phis.me> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:51246) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAG77-0003eI-KL for emacs-orgmode@gnu.org; Sat, 19 Dec 2015 06:55:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aAG72-0008F9-Lq for emacs-orgmode@gnu.org; Sat, 19 Dec 2015 06:55:53 -0500 Received: from ns350497.ip-5-39-78.eu ([5.39.78.183]:54711 helo=phis.me) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aAG72-0008Er-FB for emacs-orgmode@gnu.org; Sat, 19 Dec 2015 06:55:48 -0500 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-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, I would like the tangle functionality of org-mode to generate line directives so that compilers generate correct location for errors. I am using the following settings, using the `:comments' feature of tangle: ;; Do not comment comments (setq org-babel-tangle-uncomment-comments t) ;; Beginning: set line directives (this is for OCaml) (setq org-babel-tangle-comment-format-beg "# %start-line \"%file\"\n") ;; No end template [Remember that they are not commented] (setq org-babel-tangle-comment-format-end " ") This works surprsingly well for ordinary code blocks but breaks down when noweb is used. Indeed control is passed to ob-babel-expand-noweb-references which comments the "comment" (I see this can be confusing) because it ignores the setting. My question is: is this the indented behaviour? Also, I do think such a behaviour should be supported out of the box: this is very important for compiled languages. Best wishes, Simon.