[ESS] Emacs taking over CPU

Vitalie Spinu spinuvit at gmail.com
Tue Sep 17 00:48:48 CEST 2013


 >> Ross Boylan <ross at biostat.ucsf.edu>
 >> on Mon, 16 Sep 2013 15:31:12 -0700 wrote:

[...]


 > If I go C-c C-c for this block it hangs up emacs while evaluating
 > something_slow().  C-g gets emacs back and also shows intermediate
 > output from something_slow().  But the second date() is not executed.

 > Is this  the expected behavior?

Yes, you are using the default ess-eval-visibly = t. ESS just waits for
process after each line of your code. 

You have two options. Either change it to any other value. Then emacs
will not freeze and all your commands will be executed. But with the
price of not seeing the sent commands

Second option is to set ess-inject-source to t. This way you will see
all the command and it will not hand emacs. The drawback is that you
won't be able to accumulate multiple paragraphs of code. 

This last part is a relatively new feature and as yet undocumented in
the docs. I will have to spend some time and document all the ways ESS
can evaluate. It is very unlikely that there will be any further
improvement on that front in the year or so to come.

In any case the docs of ess-eval-visibly and ess-inject-source should be
enough to completely understand ESS evaluation.

 Vitalie



More information about the ESS-help mailing list