From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: org-babel with R, scrolling an inferior ESS process Date: Tue, 16 Feb 2010 10:00:06 -0600 Message-ID: <4B7AC106.5050109@ccbr.umn.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NhPqS-0002ZR-Tm for emacs-orgmode@gnu.org; Tue, 16 Feb 2010 11:00:17 -0500 Received: from [140.186.70.92] (port=44311 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NhPqR-0002Xn-E8 for emacs-orgmode@gnu.org; Tue, 16 Feb 2010 11:00:16 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NhPqN-0007ha-G2 for emacs-orgmode@gnu.org; Tue, 16 Feb 2010 11:00:12 -0500 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:3919) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NhPqN-0007hS-9p for emacs-orgmode@gnu.org; Tue, 16 Feb 2010 11:00:11 -0500 Received: from tadpole.ccbr.umn.edu (tadpole.ccbr.umn.edu [128.101.116.26]) by walleye.ccbr.umn.edu (8.9.3p2/8.9.3) with ESMTP id KAA27004 for ; Tue, 16 Feb 2010 10:00:09 -0600 (CST) Received: from iron.ccbr.umn.edu (iron.ccbr.umn.edu [128.101.116.194]) by tadpole.ccbr.umn.edu (8.9.3/8.9.3) with ESMTP id KAA19562 for ; Tue, 16 Feb 2010 10:00:07 -0600 (CST) List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Hello, I have been a happy user of ESS with R for years. Recently, I've begun to use org-mode for a lot of things, so of course I am interested in org-babel. I checked out a version of org-mode yesterday (2-15-2010) from git. Using just ESS, I would write a source file, test.R, and define a function in it, say #identity function test <- function(x) { x } test(3) I could then type C-c C-c (coincidentally, and happily, this is the ESS keybinding used to send a block of code to the inferior *R* process) to send the above lines to the running *R* process, and the output would show up in the *R* buffer, and scroll to the bottom of the *R* buffer since I have set (setq comint-scroll-to-bottom-on-output t) in my .emacs. However, now I hope to write a file, test.org, and write something like: * Identity function #+begin_src R :session :results output silent test <- function(x) { x } test(3) #+end_src If I use C-c ' to open an R code buffer and C-c C-c, I see the same behavior as in ESS. However, when I do C-c C-c on the code block *in the test.org buffer*, the code is sent to the *R* buffer, but it does not scroll. In the *R* buffer, once I do scroll to the bottom, I see the following: > test <- function(x) { x } test(3) 'org_babel_R_eoe' > test <- function(x) { + x + } > test(3) [1] 3 > 'org_babel_R_eoe' [1] "org_babel_R_eoe" Can anyone 1) replicate that you don't see the scrolling, even with the comint-scroll-to-bottom-on-output variable set to 't'? 2) suggest a way to get the *R* buffer to scroll to the bottom when I execute a source block from an org-mode file to a running *R* session? I am surprised by this behavior since I just assumed comint-mode should do the right thing, so I'm not sure where the issue is! Even if this can't be changed, I think org-babel is going to be a great use to me, thank you! Best Regards, Erik Iverson