all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Code block eval scope - subtree only option ignored
@ 2017-02-24 19:56 Jay Iyer
  2017-02-24 21:50 ` Charles C. Berry
  0 siblings, 1 reply; 2+ messages in thread
From: Jay Iyer @ 2017-02-24 19:56 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 253 bytes --]

Hi, evaluating a simple elisp code block in a subtree, called with C-c C-v
C-s or just C-c C-C, evaluates the entire Org buffer.  Is this expected
behavior?
How can I force the eval on the visible portion (with narrowing) of the
tree only?
Thanks,
-jay

[-- Attachment #2: Type: text/html, Size: 564 bytes --]

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

* Re: Code block eval scope - subtree only option ignored
  2017-02-24 19:56 Code block eval scope - subtree only option ignored Jay Iyer
@ 2017-02-24 21:50 ` Charles C. Berry
  0 siblings, 0 replies; 2+ messages in thread
From: Charles C. Berry @ 2017-02-24 21:50 UTC (permalink / raw)
  To: Jay Iyer; +Cc: emacs-orgmode

On Fri, 24 Feb 2017, Jay Iyer wrote:

> Hi, evaluating a simple elisp code block in a subtree, called with C-c C-v
> C-s or just C-c C-C, evaluates the entire Org buffer.  Is this expected
> behavior?

Not at all.

C-c C-v C-s on the headline evaluates just the subtree via the command 
org-babel-execute-subtree. (Org 9.0.5 and many prior versions.)

C-c C-c on the headline prompts for tags. In a src block, it evaluates the 
code.

Of course, if you wrote a Babel block that executes other Babel blocks, 
all bets are off.

> How can I force the eval on the visible portion (with narrowing) of the
> tree only?

Narrow, Then

 	M-x org-babel-execute-buffer RET


HTH,

Chuck

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

end of thread, other threads:[~2017-02-24 21:51 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-02-24 19:56 Code block eval scope - subtree only option ignored Jay Iyer
2017-02-24 21:50 ` Charles C. Berry

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.