From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: Send line to R process from babel block? Date: Thu, 22 Aug 2013 10:41:28 -0500 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:42270) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCX10-0000t8-2Z for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 11:41:59 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VCX0r-00083W-Ad for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 11:41:37 -0400 Received: from mail-oa0-x234.google.com ([2607:f8b0:4003:c02::234]:35936) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VCX0r-00082q-6o for emacs-orgmode@gnu.org; Thu, 22 Aug 2013 11:41:29 -0400 Received: by mail-oa0-f52.google.com with SMTP id f4so2695744oah.25 for ; Thu, 22 Aug 2013 08:41:28 -0700 (PDT) In-Reply-To: List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Erik Iverson Cc: emacs-orgmode On Thu, Aug 22, 2013 at 10:34 AM, Erik Iverson wrote: > John, > > Do you know about creating an indirect buffer with the current source block? > This indirect buffer will be in ESS mode, and any changes you make will be > in the original source block when you exit the indirect buffer. > > I believe C-c ' in a source block will activate the indirect buffer. There > are variables controlling how the resulting window is created. Awesome! Yes, that will do. I love that it's just mirroring the babel block as well and I can save my final result back to the block with =C-c '= or abort. For whatever reason I think I've run into this before -- it's like the analog of C-c ` (backtick) for table editing. I just didn't remember. Thanks! John > > --Erik > > > On Thu, Aug 22, 2013 at 10:00 AM, John Hendy wrote: >> >> If one opens file.R and does =C-RET= on a line, it sends it to the >> current ESS R process running (or starts a new process and then sends >> the line). >> >> Is this possible from babel blocks? I would find this extremely >> helpful when troubleshooting in order to run lines of code up to my >> problem spot vs. my current practice of copying, switching buffers, >> then yanking into the R session buffer. >> >> Is this already possible? I looked around at some of the completions >> for =M-x org-babel-*=, but didn't see anything promising. >> >> >> Thanks, >> John >> >