Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > Hello, > > "numbch...@gmail.com" <numbch...@gmail.com> writes: > >> Because it is not good for tangling. >> For example, tangle the bellowing src block, the tangled source code file >> will has `(ref:hello)` too. >> ``` >> >> #+begin_src emacs-lisp :tangle "data/code/src-coderef.el" >> (message "hello, world") (ref:hello) >> #+end_src > > You need to add "-r" switch so Org knows you want to remove coderefs: > > #+begin_src emacs-lisp :tangle "data/code/src-coderef.el" > (message "hello, world") (ref:hello) > #+end_src
I meant #+begin_src emacs-lisp -r :tangle "data/code/src-coderef.el" ^^^^