Tassilo Neubauer writes: > Hello, > > Here are the steps that led to code blocks being tangled I did not > expect to: > > emacs -Q > C-x C-h: ~/org-roam/example.org > content of example.org (excluding "): > " > #+begin_src emacs-lisp > (setq some-emacs-lisp-variable t) > #+end_src > > #+begin_src :tangle no > ;;This line should not be in the elisp code > #+end_src > "
(Sorry for the delayed reply. This message, unlike the initial post, will be redirected to the Org list, where you're more likely to get a response.) Org sees the last block above as a source block of language ":tangle". Here's what org-element-at-point reports: (src-block (:language ":tangle" :switches nil :parameters "yes"...) org-lint will complain about this block: 2 nil Missing colon in header argument "yes" And, were you to use a bare source block (i.e. drop ":tangle no"), it would complain about a missing language: 2 nil Missing language in source block So, I think the source block is mis-specified, and I'm not sure there's much that Org should do here, but perhaps others will chime in with their thoughts.