From mboxrd@z Thu Jan 1 00:00:00 1970 From: Vikas Rawal Subject: Re: org babel, ess, R Date: Tue, 4 Jul 2017 04:49:36 +0530 Message-ID: References: <87mv8o2u9b.fsf@nicolasgoaziou.fr> <3295F295-A14A-43EA-8752-53D1BEBCC31A@agrarianresearch.org> <87fuef1fov.fsf@nicolasgoaziou.fr> <829AC437-872D-453D-8543-B3C147F08B54@agrarianresearch.org> 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]:45360) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1dSAdA-0003RI-MV for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 19:19:50 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1dSAd5-0002u3-Vm for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 19:19:48 -0400 Received: from mail-pg0-x242.google.com ([2607:f8b0:400e:c05::242]:35628) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1dSAd5-0002tZ-Nu for emacs-orgmode@gnu.org; Mon, 03 Jul 2017 19:19:43 -0400 Received: by mail-pg0-x242.google.com with SMTP id d193so6050085pgc.2 for ; Mon, 03 Jul 2017 16:19:41 -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" To: John Hendy Cc: org-mode mailing list , Nicolas Goaziou > On 04-Jul-2017, at 1:22 AM, John Hendy wrote: >=20 > On Sun, Jul 2, 2017 at 7:17 PM, Vikas Rawal > wrote: >>>=20 >>> Vikas Rawal writes: >>>=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? >>>=20 >>>=20 >>> Many languages do not support sessions. So, the only possibility to >>> evaluate the code is to evaluate the code block in the source = buffer. >>>=20 >>=20 >> Yes, what I am talking about is relevant only when a session is = defined. What I would like is that if in a file the session is defined, = C-c=E2=80=99 creates >> a window configuration that shows the edit buffer and the session. In = other cases, the two windows could show the edit buffer and the original = org buffer. >=20 > As a frequent R user, I completely relate to this. As soon as one > evaluates code in the session buffer (C-c ') with C-RET, this is the > setup you get. >=20 Oh! C-RET: I didn=E2=80=99t know this. And this itself is a big help. It = is so much easier than having to change the buffer manually! > I'd add to your wish that upon first visiting a file, if I go into > edit mode, I'd like Org to pick up the fact that there's a :session > argument with a custom name and use that for C-RET in the edit buffer; C-RET seems to be picking up the custom session name if it is already = there. But otherwise it generates the default *R* session there, This should surely be fixed. >=20 > Anyway, it's easy enough to run one line with C-RET once editing and > get the session buffer, but just getting it right away is also what I > would prefer. >=20 I agree and echo. Thanks a ton for C-RET :) Vikas