[ESS] Bug or feature?

Vitalie Spinu spinuvit at gmail.com
Mon Dec 31 00:19:33 CET 2012


  >> Marius Hofert <marius.hofert at math.ethz.ch>
  >> on Mon, 31 Dec 2012 00:00:29 +0100 wrote:

  > Dear ESS developers,
  > I work with ESS 12.09-1 (2012-12-21) (under Ubuntu 12.10 with Emacs 24). If I
  > use C-c C-n to linewise step through an R script and if I end up on the last
  > line of the script (but continue to use C-c C-n), then this line is executed
  > again and again... is this a bug or a feature? 

Feature. The idea is to prevent the cursor to jump to the end of the
buffer. So all the eval-and-step commands stop at the last line. This is
very convenient when you have commented code, spaces or emacs local
variables at eob.

The annoying part is that the process stops on the last line, and not
on, a more natural, next blank line after the last line. I am aware of
this and had in plan to fix, but never got down to it. Now, that there
is an explicit request, I will try to find some time to fix.

    Thanks, 
    Vitalie

BTW: ess-eval-region-or-line-and-step is also bound to C-RET, which
arguably is faster than C-c C-n.



More information about the ESS-help mailing list