[ESS] distinguish busy from non-busy waiting

Andreas Leha andreas.leha at med.uni-goettingen.de
Tue Dec 1 10:42:40 CET 2015


Hi Vitalie

Vitalie Spinu <spinuvit at gmail.com> writes:
>>> On Mon, Nov 30 2015 11:38, Andreas Leha wrote:
>
>> Vitalie Spinu <spinuvit at gmail.com> writes:
>>>>> On Thu, Nov 26 2015 14:30, Andreas Leha wrote:
>>>
>>>> So, you are basically suggesting that emacs should look at top for me, right?
>>>> That would be possible, I guess.  But still, that might give wrong answers if
>>>> R has to wait for I/O a lot, for instance.
>>>
>>> Maybe this is a feature request for R folks. If R is waiting for promt, it
>>> should output a different prompt symbol from when the engine is actually
>>> running.
>>>
>
>> I am not sure, I understand.  In the 'naked' R console, incomplete input
>> seems to produce a '+' prompt, while complete input seems to produce an
>> empty prompt.
>
> That's what we are tracking right now - difference between + and >. That's not
> enough for what you need.
>
> Both of the following produce same result
>
> ## complete:
> {
>     Sys.sleep(10)
> }
>
> ## incomplete:
> {
>     Sys.sleep(10
>
>

I cannot reproduce this.  I do get an empty line (while waiting) in the
former case, while I get a '+' prompt in the second case.  I seem to
still miss the point:

,----
| > ## complete:
| > {
| +     Sys.sleep(10)
| + }
| 
`----

vs

,----
| > ## incomplete:
| > {
| +     Sys.sleep(10
| +
`----


Regards,
Andreas



More information about the ESS-help mailing list