From mboxrd@z Thu Jan 1 00:00:00 1970 From: Erik Iverson Subject: Re: org-babel with R, scrolling an inferior ESS process Date: Thu, 18 Feb 2010 09:37:45 -0600 Message-ID: <4B7D5EC9.9010102@ccbr.umn.edu> References: <4B7AC106.5050109@ccbr.umn.edu> <87sk90vbu9.fsf@stats.ox.ac.uk> 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 1Ni8Ru-000097-LG for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 10:37:54 -0500 Received: from [140.186.70.92] (port=35512 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Ni8Rt-00008z-Je for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 10:37:54 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1Ni8Rs-0001ac-AB for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 10:37:53 -0500 Received: from walleye.ccbr.umn.edu ([128.101.116.11]:2301) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1Ni8Rr-0001aN-7x for emacs-orgmode@gnu.org; Thu, 18 Feb 2010 10:37:52 -0500 In-Reply-To: <87sk90vbu9.fsf@stats.ox.ac.uk> 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: Dan Davison Cc: emacs-orgmode@gnu.org Hello, >> Can anyone >> 1) replicate that you don't see the scrolling, even with the >> comint-scroll-to-bottom-on-output variable set to 't'? > > Yes, this has been on my todo list for a while! Definitely time to fix it. Great, I'd be happy to test out the code when it's ready! > >> 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? > > It seems to be fixable by changing a couple of save-window-excursions > into save-excursions (patch below). I haven't thought of anything that > this will break, but in any case I suspect that Eric S. will apply the > correct fix to the main git repo soon. > > As for the 'org_babel_R_eoe' stuff, that is org-babel internals that > ideally would not be exposed to the user. I suspect that it is possible > to remove it from the comint buffer -- Eric S. is definitely best placed > to comment on the best way of doing that. > That would be great, too! > Please do let us know of any other improvements we can make to using > org-babel with ESS. Good integration with ESS has been one of our aims > from the beginning. I will let you know as I continue using it. The ultimate improvement IMO would be some sort of good multi-mode support, so that things between #+begin_src/#+end_src would be fontified according to their mode. And when I, for example, move into an R source section in my org-mode buffer, all ESS key bindings would work. I have read a couple recent threads about getting functionality like this via two-mode-mode for instance, but they have some quirks that make it unusable for me. Are you and Eric working on anything like this? I have been investigating different options and will let you know if I find anything promising! Thanks! Erik