emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Erik Iverson <eriki@ccbr.umn.edu>
To: Dan Davison <davison@stats.ox.ac.uk>
Cc: emacs-orgmode@gnu.org
Subject: Re: org-babel with R, scrolling an inferior ESS process
Date: Thu, 18 Feb 2010 09:37:45 -0600	[thread overview]
Message-ID: <4B7D5EC9.9010102@ccbr.umn.edu> (raw)
In-Reply-To: <87sk90vbu9.fsf@stats.ox.ac.uk>

Hello,

<snip>

>> 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

  reply	other threads:[~2010-02-18 15:37 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-02-16 16:00 org-babel with R, scrolling an inferior ESS process Erik Iverson
2010-02-17  2:24 ` Dan Davison
2010-02-18 15:37   ` Erik Iverson [this message]
2010-02-18 17:39     ` Eric Schulte

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4B7D5EC9.9010102@ccbr.umn.edu \
    --to=eriki@ccbr.umn.edu \
    --cc=davison@stats.ox.ac.uk \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).