emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Simon Castellan <simon.castellan@iso.mor.phis.me>
To: emacs-orgmode@gnu.org
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	[thread overview]
Message-ID: <874mfebqg1.fsf@goyave.phis.me> (raw)

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.

                 reply	other threads:[~2015-12-19 11:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874mfebqg1.fsf@goyave.phis.me \
    --to=simon.castellan@iso.mor.phis.me \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).