From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nicolas Goaziou Subject: Re: org babel, ess, R Date: Sat, 01 Jul 2017 14:53:36 +0200 Message-ID: <87mv8o2u9b.fsf@nicolasgoaziou.fr> References: Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:43474) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dRHuD-0007Mp-7z for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 08:53:46 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dRHu8-0004RV-BV for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 08:53:45 -0400 Received: from relay4-d.mail.gandi.net ([217.70.183.196]:59721) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.71) (envelope-from ) id 1dRHu8-0004Qe-5s for emacs-orgmode@gnu.org; Sat, 01 Jul 2017 08:53:40 -0400 In-Reply-To: (Vikas Rawal's message of "Sat, 1 Jul 2017 07:06:43 +0530") 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: Vikas Rawal Cc: "emacs-orgmode@gnu.org" Hello, Vikas Rawal writes: > 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. > > I would like to change this behaviour in two ways. > > 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. I fail to see how this could be a default behaviour since this is very specific to R source blocks. I suggest to implement your own `org-edit-special' wrapper, and bind it to C-c ' (or advise the function). Regards, -- Nicolas Goaziou