From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Jay Iyer <jayiyer09@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Code block eval scope - subtree only option ignored
Date: Fri, 24 Feb 2017 13:50:51 -0800 [thread overview]
Message-ID: <alpine.OSX.2.20.1702241341010.2877@charles-berrys-macbook.local> (raw)
In-Reply-To: <CAGGEobXp0EkzuoBJ_25HPajmTUaQy9zCe02AnUmahPVRACvkeg@mail.gmail.com>
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
prev parent reply other threads:[~2017-02-24 21:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-02-24 19:56 Code block eval scope - subtree only option ignored Jay Iyer
2017-02-24 21:50 ` Charles C. Berry [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.orgmode.org/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=alpine.OSX.2.20.1702241341010.2877@charles-berrys-macbook.local \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=jayiyer09@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).