* buffer-wide tangle filename
@ 2012-03-29 1:25 Julian Burgos
2012-03-29 7:47 ` Christian Moe
` (2 more replies)
0 siblings, 3 replies; 6+ messages in thread
From: Julian Burgos @ 2012-03-29 1:25 UTC (permalink / raw)
To: emacs-orgmode
Hello everyone,
This may be a very simple question. I want to tangle multiple source code
blocks into a single file. Instead of using the same output filename as a
block header (e.g. :tangle output.el) in each code block, can I I define a
buffer-wide tangle filename? Something like this (which does not work)?
#+PROPERTY :tangle output.el
Any ideas?
Julian
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: buffer-wide tangle filename
2012-03-29 1:25 buffer-wide tangle filename Julian Burgos
@ 2012-03-29 7:47 ` Christian Moe
2012-03-29 7:56 ` Rainer M Krug
2012-03-29 7:57 ` Sebastien Vauban
2012-03-29 8:27 ` Martyn Jago
2 siblings, 1 reply; 6+ messages in thread
From: Christian Moe @ 2012-03-29 7:47 UTC (permalink / raw)
To: Julian Burgos; +Cc: emacs-orgmode
Hi, Julian,
See if it helps to fix a small syntax error: drop the colon before
"tangle", and place it after #+PROPERTY instead.
#+PROPERTY: tangle output.el
The colon in ":tangle" is needed when you're providing a header
argument to a src block, but not when you're setting buffer-wide
properties.
Yours,
Christian
On 3/29/12 3:25 AM, Julian Burgos wrote:
> Hello everyone,
> This may be a very simple question. I want to tangle multiple source code
> blocks into a single file. Instead of using the same output filename as a
> block header (e.g. :tangle output.el) in each code block, can I I define a
> buffer-wide tangle filename? Something like this (which does not work)?
>
> #+PROPERTY :tangle output.el
>
>
> Any ideas?
>
> Julian
>
>
>
>
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: buffer-wide tangle filename
2012-03-29 7:47 ` Christian Moe
@ 2012-03-29 7:56 ` Rainer M Krug
0 siblings, 0 replies; 6+ messages in thread
From: Rainer M Krug @ 2012-03-29 7:56 UTC (permalink / raw)
To: mail; +Cc: Julian Burgos, emacs-orgmode
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
On 29/03/12 09:47, Christian Moe wrote:
> Hi, Julian,
>
> See if it helps to fix a small syntax error: drop the colon before "tangle", and place it
> after #+PROPERTY instead.
>
> #+PROPERTY: tangle output.el
>
> The colon in ":tangle" is needed when you're providing a header argument to a src block, but
> not when you're setting buffer-wide properties.
And do not forget to C-c C-c on the changed buffer wide property!
Rainer
>
> Yours, Christian
>
> On 3/29/12 3:25 AM, Julian Burgos wrote:
>> Hello everyone, This may be a very simple question. I want to tangle multiple source code
>> blocks into a single file. Instead of using the same output filename as a block header (e.g.
>> :tangle output.el) in each code block, can I I define a buffer-wide tangle filename?
>> Something like this (which does not work)?
>>
>> #+PROPERTY :tangle output.el
>>
>>
>> Any ideas?
>>
>> Julian
>>
>>
>>
>>
>
>
- --
Rainer M. Krug, PhD (Conservation Ecology, SUN), MSc (Conservation Biology, UCT), Dipl. Phys.
(Germany)
Centre of Excellence for Invasion Biology
Stellenbosch University
South Africa
Tel : +33 - (0)9 53 10 27 44
Cell: +33 - (0)6 85 62 59 98
Fax : +33 - (0)9 58 10 27 44
Fax (D): +49 - (0)3 21 21 25 22 44
email: Rainer@krugs.de
Skype: RMkrug
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
iEYEARECAAYFAk90FbEACgkQoYgNqgF2egqHrwCggnp4/k+swEno/hW/iRPUfop/
P1cAnRfxvFlI03qEQg8ys/RuiBnGikeW
=qodT
-----END PGP SIGNATURE-----
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: buffer-wide tangle filename
2012-03-29 1:25 buffer-wide tangle filename Julian Burgos
2012-03-29 7:47 ` Christian Moe
@ 2012-03-29 7:57 ` Sebastien Vauban
2012-03-29 8:20 ` Julian Burgos
2012-03-29 8:27 ` Martyn Jago
2 siblings, 1 reply; 6+ messages in thread
From: Sebastien Vauban @ 2012-03-29 7:57 UTC (permalink / raw)
To: emacs-orgmode-mXXj517/zsQ
Hello Julian,
"Julian Burgos" wrote:
> This may be a very simple question. I want to tangle multiple source code
> blocks into a single file. Instead of using the same output filename as a
> block header (e.g. :tangle output.el) in each code block, can I I define a
> buffer-wide tangle filename? Something like this (which does not work)?
>
> #+PROPERTY :tangle output.el
>
> Any ideas?
Yes: #+PROPERTY tangle output.el
that is no `:' sign in front of tangle...
Best regards,
Seb
--
Sebastien Vauban
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: buffer-wide tangle filename
2012-03-29 7:57 ` Sebastien Vauban
@ 2012-03-29 8:20 ` Julian Burgos
0 siblings, 0 replies; 6+ messages in thread
From: Julian Burgos @ 2012-03-29 8:20 UTC (permalink / raw)
To: emacs-orgmode
Thanks!! You were right. The position of the colon was wrong (but is
still needed), and I had to refresh the local setup.
On fim 29.mar 2012 07:57, Sebastien Vauban wrote:
> Hello Julian,
>
> "Julian Burgos" wrote:
>> This may be a very simple question. I want to tangle multiple source code
>> blocks into a single file. Instead of using the same output filename as a
>> block header (e.g. :tangle output.el) in each code block, can I I define a
>> buffer-wide tangle filename? Something like this (which does not work)?
>>
>> #+PROPERTY :tangle output.el
>>
>> Any ideas?
>
--
Julian Mariano Burgos, PhD
Hafrannsóknastofnunin/Marine Research Institute
Skúlagata 4, 121 Reykjavík, Iceland
Sími/Telephone : +354-5752037
Bréfsími/Telefax: +354-5752001
Netfang/Email: julian@hafro.is
^ permalink raw reply [flat|nested] 6+ messages in thread
* Re: buffer-wide tangle filename
2012-03-29 1:25 buffer-wide tangle filename Julian Burgos
2012-03-29 7:47 ` Christian Moe
2012-03-29 7:57 ` Sebastien Vauban
@ 2012-03-29 8:27 ` Martyn Jago
2 siblings, 0 replies; 6+ messages in thread
From: Martyn Jago @ 2012-03-29 8:27 UTC (permalink / raw)
To: emacs-orgmode
"Julian Burgos" <julian@hafro.is> writes:
> Hello everyone,
> This may be a very simple question. I want to tangle multiple source code
> blocks into a single file. Instead of using the same output filename as a
> block header (e.g. :tangle output.el) in each code block, can I I define a
> buffer-wide tangle filename? Something like this (which does not work)?
>
> #+PROPERTY :tangle output.el
>
>
> Any ideas?
>
> Julian
--8<---------------cut here---------------start------------->8---
#+PROPERTY: tangle output.el
--8<---------------cut here---------------end--------------->8---
Best, Martyn
^ permalink raw reply [flat|nested] 6+ messages in thread
end of thread, other threads:[~2012-03-29 8:27 UTC | newest]
Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-29 1:25 buffer-wide tangle filename Julian Burgos
2012-03-29 7:47 ` Christian Moe
2012-03-29 7:56 ` Rainer M Krug
2012-03-29 7:57 ` Sebastien Vauban
2012-03-29 8:20 ` Julian Burgos
2012-03-29 8:27 ` Martyn Jago
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).