|
From: Daniel J S. <dan...@ie...> - 2007-06-04 22:08:45
|
Petr Mikulik wrote: >>Let me toss this idea to Petr... What would you think of instead of removing >>items from the stack, say the user types >> >>foo = 35 >>plot x*foo >>foo = 25 >>plot x*foo >>history >>foo = 20 >>plot x*foo >>history >> >>and the result of the final history might be >> >> 1 foo = 35 >> 2 plot x*foo >> 3 foo = 25 >> 6 foo = 20 >> 8 history > > > no, plot x*foo will be the last. You're right, that's what I indended. Actually, the "history" would still be last as we are placing stuff in history, then processing, so it'd be 1 foo = 35 3 foo = 25 6 foo = 20 7 plot x*foo 8 history We place stuff in history first before processing so that the user can recall a command even if it failed (because of a one letter typo or something). I can make that change in the patch. I like that approach. Dan |