From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: org babel, ess, R Date: Sun, 2 Jul 2017 08:18:59 +0530 Message-ID: <3295F295-A14A-43EA-8752-53D1BEBCC31A@agrarianresearch.org> References: <87mv8o2u9b.fsf@nicolasgoaziou.fr> Mime-Version: 1.0 (Mac OS X Mail 10.2 \(3259\)) Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:38963) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRUxc-0007oj-3z for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 22:50:08 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRUxZ-0004X2-2G for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 22:50:08 -0400 Received: from mail-pf0-x22a.google.com ([2607:f8b0:400e:c00::22a]:33278) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dRUxY-0004VC-RD for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 22:50:05 -0400 Received: by mail-pf0-x22a.google.com with SMTP id e7so84422858pfk.0 for ; Sat, 01 Jul 2017 19:50:02 -0700 (PDT) In-Reply-To: <87mv8o2u9b.fsf@nicolasgoaziou.fr> 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" To: Nicolas Goaziou Cc: org-mode mailing list >=20 >> When I press C-c' in an R code block to open an edit buffer with ess, = on my >> computer, it splits the screen into two side-by-side windows, with = the new >> window on the right showing the edit buffer, and the window on the = left >> showing the original file. >>=20 >> I would like to change this behaviour in two ways. >>=20 >> 1. I would like the window that continues to show the original file = to >> instead show the R session in which lines from the edit buffer can be >> evaluated. I can manually change the buffer in this window to show me = the R >> session but I was wondering if this can be the default behaviour. >=20 > I fail to see how this could be a default behaviour since this is very > specific to R source blocks. >=20 Isn=E2=80=99t is what most users need while editing the code block? The = possibility of evaluating the code to test and see what happens? At = present, one window shows the original buffer, which is, at least in my = case, not needed while I am editing the code. Is this an R specific need? Do people working with other languages not = need this? > I suggest to implement your own `org-edit-special' wrapper, and bind = it > to C-c ' (or advise the function). >=20 Thanks for the pointer. Let me look at this. Thanks and best wishes, Vikas