* tangle and comments.
@ 2017-10-30 17:08 Uwe Brauer
2017-10-31 7:47 ` Eric S Fraga
0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2017-10-30 17:08 UTC (permalink / raw)
To: emacs-orgmode
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
<<tangle-el-the-second>>)
#+end_src
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tangle and comments.
2017-10-30 17:08 tangle and comments Uwe Brauer
@ 2017-10-31 7:47 ` Eric S Fraga
2017-10-31 15:42 ` Uwe Brauer
0 siblings, 1 reply; 6+ messages in thread
From: Eric S Fraga @ 2017-10-31 7:47 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 834 bytes --]
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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 194 bytes --]
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tangle and comments.
2017-10-31 7:47 ` Eric S Fraga
@ 2017-10-31 15:42 ` Uwe Brauer
2017-10-31 17:42 ` Yury G. Kudryashov
0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2017-10-31 15:42 UTC (permalink / raw)
To: emacs-orgmode
> 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
<<tangle-el-the-second>>)
#+end_src
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tangle and comments.
2017-10-31 15:42 ` Uwe Brauer
@ 2017-10-31 17:42 ` Yury G. Kudryashov
2017-10-31 18:12 ` Uwe Brauer
0 siblings, 1 reply; 6+ messages in thread
From: Yury G. Kudryashov @ 2017-10-31 17:42 UTC (permalink / raw)
To: Uwe Brauer; +Cc: emacs-orgmode
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
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tangle and comments.
2017-10-31 17:42 ` Yury G. Kudryashov
@ 2017-10-31 18:12 ` Uwe Brauer
2017-10-31 18:24 ` Nicolas Goaziou
0 siblings, 1 reply; 6+ messages in thread
From: Uwe Brauer @ 2017-10-31 18:12 UTC (permalink / raw)
To: emacs-orgmode
>>> "Yury" == Yury G Kudryashov <urkud@urkud.name> 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
<<tangle-el-the-second>>)
#+end_src
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: tangle and comments.
2017-10-31 18:12 ` Uwe Brauer
@ 2017-10-31 18:24 ` Nicolas Goaziou
0 siblings, 0 replies; 6+ messages in thread
From: Nicolas Goaziou @ 2017-10-31 18:24 UTC (permalink / raw)
To: emacs-orgmode
Hello,
Uwe Brauer <oub@mat.ucm.es> 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
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2017-10-31 18:24 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-10-30 17:08 tangle and comments Uwe Brauer
2017-10-31 7:47 ` Eric S Fraga
2017-10-31 15:42 ` Uwe Brauer
2017-10-31 17:42 ` Yury G. Kudryashov
2017-10-31 18:12 ` Uwe Brauer
2017-10-31 18:24 ` Nicolas Goaziou
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).