[ESS] Multi-line commands and comint-previous-prompt (from the menu Backward Output Group)

Manuel Morales mmorales at williams.edu
Fri Dec 12 03:22:51 CET 2014

I'm using ESS 14.9 installed from Melpa.

If I enter the following multi-line expression:

a <-

I can get back to it using C-c C-p and then re-run it using ENTER. That
gives the following output:

> a <-
a <-
+     c(1:10)

If I now type C-c C-p and try to re-run using ENTER I get only the first

> a <-

Is there a way to change this behavior?

For more background I'm trying to write a function that will allow me to
recall commands from the history that have been entered from either the
R-buffer or a script file and the issue above is causing problems. If
interested see link below for the function:

More information about the ESS-help mailing list