running R under ESS inside emacs 21 prerelease

Faheem Mitha faheem at email.unc.edu
Mon Jul 30 21:38:59 CEST 2001



On Mon, 30 Jul 2001, Stephen Eglen wrote:

>  > 
>  >     FM> Dear People, This is likely not news to anyone, but I'm
>  >     FM> running Debian with a prerelase version of emacs 21
>  >     FM> (21.0.104.2), ESS version (5.1.18-0), R (1.3.0-1) and doing
>  >     FM> M-x-R locks it up solid. I've never seen any version of emacs
>  >     FM> do this, ever. I guess that is why they call it a prerelease.
> 
> 
> Hi, I'm running Ess 5.1.18 with the 21.0.104 release of Emacs (redhat
> 6.1 though).  I had problems with earlier pre-releases on compaq Alpha
> due to the change in comint code - I would eventually get a timout
> error after trying M-x R.  Try the followign code in your .emacs to
> see if it helps:
> 
> (if (string-match "GNU Emacs 21" (emacs-version))
>     (add-hook 'inferior-ess-mode-hook 'my-inf-ess-hook))
>  
> (defun my-inf-ess-hook ()
>   "Use regexps rather than field boundarys for movement in inferior buffers.
> Only needed for GNU Emacs 21."
>   (set (make-local-variable 'comint-use-prompt-regexp-instead-of-fields) t))

That seems to do the trick. R now starts up more or less normally. How
about adding the above to the ESS documentation?
 
> look at  the doc for that comint- variable for more information.

Ok.                          Thanks, Faheem.

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
ess-help mailing list -- To (un)subscribe, send
subscribe	or	unsubscribe
(in the "body", not the subject !)  To: ess-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the ESS-help mailing list