<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN" "http://www.w3.org/TR/REC-html40/strict.dtd"><html><head><meta name="qrichtext" content="1" /><style type="text/css">p, li { white-space: pre-wrap; }</style></head><body style=" font-family:'Bitstream Vera Sans'; font-size:10pt; font-weight:400; font-style:normal;">Hi,<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>On Tuesday 26 May 2009, Romain Francois wrote:<br>
> What confuses me is that R_ReadConsole is __not__ used by R to request<br>
> top-level commands, hence there is a difference between "within the<br>
> browser" and "outside"<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>yes it is. That's what "repldlldo1_wants_code" is for in our implementation of the RReadConsole callback. If that is set, we feed it the current top-level commands, already. It's just wrapped into two more loops in runUserCommandInternal() and runCommandInternal() to make things more confusing (and unfortunately, this is not one of the things I intend to/know how to clean up).<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>(You will want to read the sections inside #ifdef USE_R_REPLDLLDO1, only. The sections where this is not defined are legacy code not relevant to this discussion).<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>> It is probably better if you proceed first with the modifications you<br>
> have in mind.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Allright. I'll try to give that a good priority, and will let you know, when I'm done with the things that bug me most.<br>
<p style="-qt-paragraph-type:empty; margin-top:0px; margin-bottom:0px; margin-left:0px; margin-right:0px; -qt-block-indent:0; text-indent:0px; -qt-user-state:0;"><br></p>Regards<br>
Thomas</p></body></html>