From: Andreas Leitgeb on 9 Feb 2010 08:08 Alexandre Ferrieux <alexandre.ferrieux(a)gmail.com> wrote: > For those interested in that feature, I just wrote patch 2927535, ... > https://sourceforge.net/tracker/?func=detail&aid=2927535&group_id=10894&atid=310894 It's a while since this announcement, and a second (much better) patch was added by Alex early January: histresult.patch The nice thing about that one patch is, that it concentrates on the existing history-mechanism, and just adds the last result to where one would expect such a feature. Also, the last result itself is saved as an array-element ::tcl::history(lastcommand) and can trivially be linked to $_ as per user's .tclshrc: just add "upvar #0 ::tcl::history(lastcommand) _" Now, my question: what's the future? Will it require a TIP? Is it a sufficiently local simple change that it can get through as a fix for a longstanding omission? I surely wouldn't want it to be just forgotten about (except for those few "freaks" who regularly compile their own tclsh just for the patch) PS: the upvar-line could then be mentioned as a hint in the history's manpage.
|
Pages: 1 Prev: text widget : get -displaychars Next: OS X - can't change button color |