[ESS] ESS 5.14 and ?? shortcut syntax (and kludge in input-sender)

Андрей Парамонов cmr.pent at gmail.com
Thu Aug 11 12:10:15 CEST 2011


Great, thanks!

I was however under impression that the solution is even simpler: if
"?" handler was is smart enough to understand that it shouldn't
process "??" prefix as well, no explicit call to help.search would
probably be needed.

Thanks for your quick and helpful response,
Andrey Paramonov

2011/8/11 Vitalie Spinu <spinuvit.list at gmail.com>:
>>
>> No documentation for '?test' in specified packages and libraries:
>> you could try '???test'
>>
>
> This problem is annotated in ess-help.el, so developers are  aware of
> it. It was not a priority probably.
> It's indeed easy to address. I attach the patch which solves this issue.
>
> Since it's all about modification of 'inferior-R-input-sended' I would
> like to point out another kludge in this command.
>
> If you type
>
> Sys.sleep(5)
>
> at R prompt emacs will froze for 5 second. It happens with any command
> which takes time to execute.
> I am sure this has been reported before.
>
> The problem stems from the fact that comint is waiting to delete the
> double input (comint-process-echoes is set to 't' in *R* buffers, see
> the doc).
>
> What happens is:  'inferior-R-input-sender' calls 'ess-eval-linewise'
> which inserts the user input and double it (since it's already in the
> buffer). Then comint is waiting to delete
> the doubled input.
>
> The kludge is easy to correct, just call 'process-send-string' instead
> of 'ess-eval-linewise'.  This will free emacs immediately.
>
> I incorporated these changes in ess-tracebug
> (http://code.google.com/p/ess-tracebug/). You can toggle it on and off
> with M-x ess-tracebug and see the difference.
>
> The patch bellow also corrects this kludge.
>
> Best,
> Vitalie.



More information about the ESS-help mailing list