On Wed, Jan 30, 2008 at 05:25:17PM +0100, Anton Ertl wrote:
> What can be done relatively easily is to reprint the last input line
> from history and place the cursor at the wrong word.  However, one may
> have to take the effects of the earlier executed words into
> consideration; it may be better to preserve the data stack on an
> "undefined word" error, and then only show the rest of the line,
> starting at the wrong word, and with the cursor pointing there.

That makes sense, considering that the earlier words have been executed
and can't necessarily be unexecuted.  Is it always easy to find the offending
word for an error?  I haven't looked yet at how text positions (the ones
that control where the "^" characters go in error reports) are calculated
for every possible error.

-- Derek

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to