Re: [O] control tangling from section header

2015-02-23 Thread Rainer M Krug
Daniele Pizzolli d...@toel.it writes:

 Hello Ken,

 Ken Mankoff writes:

 I'm working with my literate init file (emacs.org), and would like to
 have certain sections not tangle. I currently do this with :tangle no
 at the SRC block level. Is it possible to control tangling with tags at
 the header level?

 Not with tag but with PROPERTIES:

 * outline header
   :PROPERTIES:
   :header-args: :tangle no
   :END:

 More at
 http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html

 It would make it much easier to disable/enable sections, and see what
 sections are enabled/disabled, if the tangling state were more clearly
 visible like tags are.

 I do not think that this is currently possible.

If I am not mistaken, you can mark the header as COMMENT and no code
blocks under this header are tangled.

Cheers,

Rainer


 Best,
 Daniele






-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] control tangling from section header

2015-02-23 Thread Rasmus
Daniele Pizzolli d...@toel.it writes:

 Hello Ken,

 Ken Mankoff writes:

 I'm working with my literate init file (emacs.org), and would like to
 have certain sections not tangle. I currently do this with :tangle no
 at the SRC block level. Is it possible to control tangling with tags at
 the header level?

 Not with tag but with PROPERTIES:

 * outline header
   :PROPERTIES:
   :header-args: :tangle no
   :END:

 More at
 http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html

This is what I would do as well.

 It would make it much easier to disable/enable sections, and see what
 sections are enabled/disabled, if the tangling state were more clearly
 visible like tags are.

 I do not think that this is currently possible.

I haven't tried, but maybe one could use org-babel-pre-tangle-hook or
org-export-before-parsing-hook, depending on the context, to set/update
properties based on tags.  

For an init file the timing might matter.  I don't know how init.org
works, but presumably there's a ignite.el that starts the init process
using init.org?

—Rasmus

-- 
Need more coffee. . .




Re: [O] control tangling from section header

2015-02-23 Thread Ken Mankoff


On 2015-02-23 at 09:39, Rainer M Krug rai...@krugs.de wrote: 
I'm working with my literate init file (emacs.org), and would 
like to have certain sections not tangle. I currently do this 
with :tangle no at the SRC block level. Is it possible to 
control tangling with tags at the header level? 


If I am not mistaken, you can mark the header as COMMENT and no 
code blocks under this header are tangled. 



That would be a great solution, but it does not work on my system
(8.2.10)

 -k.



Re: [O] control tangling from section header

2015-02-23 Thread Rainer M Krug
Ken Mankoff mank...@gmail.com writes:

 On 2015-02-23 at 09:39, Rainer M Krug rai...@krugs.de wrote: 
 I'm working with my literate init file (emacs.org), and would like
 to have certain sections not tangle. I currently do this with
 :tangle no at the SRC block level. Is it possible to control
 tangling with tags at the header level? 

 If I am not mistaken, you can mark the header as COMMENT and no code
 blocks under this header are tangled. 


 That would be a great solution, but it does not work on my system
 (8.2.10)

Just confirmed here - works here:

Org-mode version 8.3beta (release_8.3beta-846-g38ab8b 
@/Users/rainerkrug/.emacs.d/org-mode/lisp/)

GNU Emacs 24.4.1 (x86_64-apple-darwin14.0.0, Carbon Version 157 AppKit 1343.16) 
of 2015-02-02 on Rainers-MacBook-Pro-4.local

Cheers,

Rainer


  -k.



-- 
Rainer M. Krug
email: Raineratkrugsdotde
PGP: 0x0F52F982


signature.asc
Description: PGP signature


Re: [O] control tangling from section header

2015-02-23 Thread Ken Mankoff


On 2015-02-23 at 10:03, Rainer M Krug rai...@krugs.de wrote:


Just confirmed here - works here:

Org-mode version 8.3beta (release_8.3beta-846-g38ab8b 
@/Users/rainerkrug/.emacs.d/org-mode/lisp/)




Yes it does. I've upgraded to 8.3 from git.

Thanks,

 -k.



[O] control tangling from section header

2015-02-22 Thread Ken Mankoff

I'm working with my literate init file (emacs.org), and would like to
have certain sections not tangle. I currently do this with :tangle no
at the SRC block level. Is it possible to control tangling with tags at
the header level? It would make it much easier to disable/enable
sections, and see what sections are enabled/disabled, if the tangling
state were more clearly visible like tags are.

  -k.



Re: [O] control tangling from section header

2015-02-22 Thread Daniele Pizzolli
Hello Ken,

Ken Mankoff writes:

 I'm working with my literate init file (emacs.org), and would like to
 have certain sections not tangle. I currently do this with :tangle no
 at the SRC block level. Is it possible to control tangling with tags at
 the header level?

Not with tag but with PROPERTIES:

* outline header
  :PROPERTIES:
  :header-args: :tangle no
  :END:

More at
http://orgmode.org/manual/Header-arguments-in-Org-mode-properties.html

 It would make it much easier to disable/enable sections, and see what
 sections are enabled/disabled, if the tangling state were more clearly
 visible like tags are.

I do not think that this is currently possible.

Best,
Daniele