emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: "Charles C. Berry" <ccberry@ucsd.edu>
To: Carlos Henrique Machado S Esteves <ch.machado.esteves@gmail.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: [PATCH] org-babel-execute-src-block-region
Date: Mon, 2 Nov 2015 10:19:12 -0800	[thread overview]
Message-ID: <alpine.OSX.2.20.1511020942130.633@charles-berrys-macbook.local> (raw)
In-Reply-To: <CAMXw3=YHuw7D0=4LH14L=99sFhHUa9Tn5F0wyG754bBZu=5YKA@mail.gmail.com>

On Sun, 1 Nov 2015, Carlos Henrique Machado S Esteves wrote:

> Hello, I find it useful to be able to execute only a region of a source
> code block, so I've implemented a new function for that. I've tested it
> with MATLAB and Python, but it should work for any mode, since it calls
> org-babel-execute-src-block.
>

You might want to check that point and mark are both inside the src 
block. Otherwise, the results are unpredictable.

Also note that:

ess-mode, python-mode, sh-mode and octave-mode already provide this 
capability (and a lot more) for R, python, shell scripts, octave/matlab 
and some other languages from the edit buffer.

`org-babel-demarcate-block' gives the user the ability to break up src 
blocks into smaller pieces so they can be run independently.

Best,

Chuck

  reply	other threads:[~2015-11-02 18:19 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-11-02  2:17 [PATCH] org-babel-execute-src-block-region Carlos Henrique Machado S Esteves
2015-11-02 18:19 ` Charles C. Berry [this message]
2015-11-10 18:19   ` Carlos Henrique Machado S Esteves
2015-11-11  0:08     ` Nicolas Goaziou
2015-11-11  5:10     ` Xebar Saram
2015-11-11 13:44       ` Ista Zahn
2015-11-11 17:43         ` Charles C. Berry
2015-11-11 18:55           ` Xebar Saram
2015-11-11 21:53             ` Charles C. Berry

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.1511020942130.633@charles-berrys-macbook.local \
    --to=ccberry@ucsd.edu \
    --cc=ch.machado.esteves@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).