The double click in console does not work as in editor.
It does not highlight the expression from left to right paranthesis.
So instead of:
bind $txt <Double-1> {HighlightExpression %W }
it must be:
bind $txt <Double-1> {HighlightExpression %W; break }