This is the official manual for the latest Org-mode release.

Table of Contents

Next: , Previous: tangle-mode, Up: Specific header arguments


14.8.2.25 :eval

The :eval header argument can limit evaluation of specific code blocks. It is useful for protection against evaluating untrusted code blocks by prompting for a confirmation. This protection is independent of the org-confirm-babel-evaluate setting.

never or no
Org will never evaluate this code block.
query
Org prompts the user for permission to evaluate this code block.
never-export or no-export
Org will not evaluate this code block when exporting, yet the user can evaluate this source block interactively.
query-export
Org prompts the user for permission to export this code block.

If :eval header argument is not set for a source block, then Org determines whether to evaluate from the org-confirm-babel-evaluate variable (see Code evaluation security).