emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* babel print
@ 2012-08-22 19:38 skip
  2012-08-22 22:55 ` Sean O'Halpin
  0 siblings, 1 reply; 2+ messages in thread
From: skip @ 2012-08-22 19:38 UTC (permalink / raw)
  To: emacs-orgmode

I have an org file with several src blocks and tangle blocks.

How can I print the file without executing any of the src or tangle
blocks? I want to avoid disabling each block.

How can I generate the tangle files only without executing any other
src blocks in the file? I want to avoid going to each tangle block and
executing.

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: babel print
  2012-08-22 19:38 babel print skip
@ 2012-08-22 22:55 ` Sean O'Halpin
  0 siblings, 0 replies; 2+ messages in thread
From: Sean O'Halpin @ 2012-08-22 22:55 UTC (permalink / raw)
  To: skip; +Cc: emacs-orgmode

On Wed, Aug 22, 2012 at 8:38 PM, skip <scp0801@gmail.com> wrote:
> I have an org file with several src blocks and tangle blocks.
>
> How can I print the file without executing any of the src or tangle
> blocks? I want to avoid disabling each block.

Use

  #+PROPERTY: eval never

at the head of the file and C-c on that line to refresh the local setup.
This disables execution for all blocks in the file. Alternatively, you can use

  #+PROPERTY: eval no-export

to disable it only for exporting.

See http://orgmode.org/org.html#eval for details.

> How can I generate the tangle files only without executing any other
> src blocks in the file? I want to avoid going to each tangle block and
> executing.

=M-x org-babel-tangle= should tangle all the blocks in the file.

See http://orgmode.org/org.html#Extracting-source-code

Regards,
Sean

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-08-22 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-08-22 19:38 babel print skip
2012-08-22 22:55 ` Sean O'Halpin

Code repositories for project(s) associated with this 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).