Re: [O] tangle and comments.
Hello, Uwe Brauer writes: > * tangling with yes or link comments > :PROPERTIES: > :header-args: :comments org > :tangle: output.el The above is deprecated syntax. > #+source: tangle-el-the-second This also is deprecated syntax (although it is unrelated to your issue). Regards, -- Nicolas Goaziou
Re: [O] tangle and comments.
>>> "Yury" == Yury G Kudryashov writes: > Uwe Brauer writes: >> Thanks but the following file does not work neither >> that is running org-babel-tangle gives me >> >> Tangled 0 code blocks from tangle2.org > You should add ":tangle yes" or ":tangle output.el" to header-args. Hm thanks but it does not work neither Please try this, for me nothing is tangled. * tangling with yes or link comments :PROPERTIES: :header-args: :comments org :tangle: output.el :END: The top block #+begin_src emacs-lisp :comments org (message "first block") #+end_src here's some text which won't be tangled * subheading another block | 1 | first | | 2 | second | #+source: tangle-el-the-second #+begin_src emacs-lisp (message "second") #+end_src and finally a block with a =:noweb= header argument #+begin_src emacs-lisp :noweb yes (progn <>) #+end_src
Re: [O] tangle and comments.
Uwe Brauer writes: > Thanks but the following file does not work neither > that is running org-babel-tangle gives me > > Tangled 0 code blocks from tangle2.org You should add ":tangle yes" or ":tangle output.el" to header-args. > tangling with yes or link comments > :PROPERTIES: > :header-args: :comments org > :END: > > > The top block > #+begin_src emacs-lisp :comments org > (message "first block") > #+end_src > > here's some text which won't be tangled According to http://orgmode.org/manual/comments.html, this line won't be tangled, because there are no other source code blocks after this line, but before the next heading. -- Sincerely yours, Yury G. Kudryashov
Re: [O] tangle and comments.
> On Monday, 30 Oct 2017 at 19:08, Uwe Brauer wrote: > You don't way what version of org you are using but I am assuming a > relatively recent version (given your emails in recent past). In this Right I am using GNU emacs 26.5 and a very recent compiled git clone > case, the comments directive is a src block header argument so should > either be on the src line or as a header-args property: > So either > #+begin_src emacs-lisp :comments org > or > :PROPERTIES: > :header-args: :comments org > :END: Thanks but the following file does not work neither that is running org-babel-tangle gives me Tangled 0 code blocks from tangle2.org tangling with yes or link comments :PROPERTIES: :header-args: :comments org :END: The top block #+begin_src emacs-lisp :comments org (message "first block") #+end_src here's some text which won't be tangled * subheading another block | 1 | first | | 2 | second | #+source: tangle-el-the-second #+begin_src emacs-lisp (message "second") #+end_src and finally a block with a =:noweb= header argument #+begin_src emacs-lisp :noweb yes (progn <>) #+end_src
Re: [O] tangle and comments.
On Monday, 30 Oct 2017 at 19:08, Uwe Brauer wrote: > Hi > > I followed the instructions found in > http://eschulte.github.io/babel-dev/DONE-tangle-entire-org-mode-file-in-comments.html > > Although they are 7 years old however when I try to tangle the example > file I receive > > Tangled 0 code blocks from tangle2.org > > Here is the file just in case You don't way what version of org you are using but I am assuming a relatively recent version (given your emails in recent past). In this case, the comments directive is a src block header argument so should either be on the src line or as a header-args property: So either #+begin_src emacs-lisp :comments org or :PROPERTIES: :header-args: :comments org :END: HTH, eric -- : Eric S Fraga via Emacs 27.0.50, Org release_9.1.2-117-g5b2b8f signature.asc Description: PGP signature
[O] tangle and comments.
Hi I followed the instructions found in http://eschulte.github.io/babel-dev/DONE-tangle-entire-org-mode-file-in-comments.html Although they are 7 years old however when I try to tangle the example file I receive Tangled 0 code blocks from tangle2.org Here is the file just in case Uwe Brauer tangling with yes or link comments :PROPERTIES: :comments: yes :tangle: comments.el :END: The top block #+begin_src emacs-lisp (message "first block") #+end_src here's some text which won't be tangled * subheading another block | 1 | first | | 2 | second | #+source: tangle-el-the-second #+begin_src emacs-lisp (message "second") #+end_src and finally a block with a =:noweb= header argument #+begin_src emacs-lisp :noweb yes (progn <>) #+end_src