[ESS] ess-remote and shell-mode

Stephen Eglen S.J.Eglen at damtp.cam.ac.uk
Fri Jun 12 21:20:46 CEST 2009

Ross Boylan <ross at biostat.ucsf.edu> wrote:

> The problem comes when I quit R.  The buffer remains in iESS mode, and
> shell commands I type at the prompt don't seem to work.  If I say M-x
> shell-mode then the shell starts working, and I can repeat the whole
> process.
> Is there a better way to handle this?  Ideally, ess would be able to
> tell when I was done with R and revert to the previous mode.  (Even more
> ideally it would automatically re-activate iEss mode when I retstarted
> R).

hi Ross, anything is possible!  Probably the firstthing you ask is
easiest -- but it depends how you quit R;  if you use the Emacs
keybinding C-c C-q to quit *R*, then a hook onto that function could
perhaps return you to shell-mode -- right now, the relevant function is
ess-quit-R but there isn't a hook variable.  One could be added though.

Reactivating iESS mode automatically sounds like more work...


More information about the ESS-help mailing list