+2008-02-07 Jeff Hobbs <jeffh@ActiveState.com>
+
+ * tkcon.tcl (::tkcon::Bindings): prevent Expand virtual events
+ from triggering follow-on events (most important for <Tab>).
+ (::tkcon::Retrieve): remove extraneous http::geturl call.
+
2007-06-22 Jeff Hobbs <jeffh@ActiveState.com>
* tkcon.tcl (::tkcon::EvalCmd): add OPT(resultfilter) and 'tkcon
Ensure that initial files are sources at level #0.
Convert args after (--|-argv|-args) into slave arguments and set
them as the main $::argv/$::argc for propagation.
-
+
2007-06-21 Jeff Hobbs <jeffh@ActiveState.com>
* docs/tkcon.1.man, docs/tkcon.n.man, docs/tkconrc.5.man (new):
# Run any user defined result filter command. The command is
# passed result code and data.
if {[llength $OPT(resultfilter)]} {
- set cmd [concat $OPT(resultfilter) [list $code $res]]
+ set cmd [linsert $OPT(resultfilter) end $code $res]
if {[catch {EvalAttached $cmd} res2]} {
$w insert output "Filter failed: $res2" stderr \n stdout
} else {
bind TkConsole <<TkCon_ExpandFile>> {
if {[%W compare insert > limit]} {::tkcon::Expand %W path}
- break
+ break ; # could check "%K" == "Tab"
}
bind TkConsole <<TkCon_ExpandProc>> {
if {[%W compare insert > limit]} {::tkcon::Expand %W proc}
+ break ; # could check "%K" == "Tab"
}
bind TkConsole <<TkCon_ExpandVar>> {
if {[%W compare insert > limit]} {::tkcon::Expand %W var}
+ break ; # could check "%K" == "Tab"
}
bind TkConsole <<TkCon_Expand>> {
if {[%W compare insert > limit]} {::tkcon::Expand %W}
+ break ; # could check "%K" == "Tab"
}
bind TkConsole <<TkCon_Tab>> {
if {[%W compare insert >= limit]} {
}
set token [::http::geturl $PRIV(HEADURL) \
-headers $headers -timeout 30000]
- set token [::http::geturl $PRIV(HEADURL) -timeout 30000]
::http::wait $token
set code [catch {
set ncode [::http::ncode $token]
if {$code == 2} {
tk_messageBox -type ok -icon info -parent $PRIV(root) \
-title "Failed to retrieve source" \
- -message "Failed to retrieve latest tkcon source:\n$err"
+ -message "Failed to retrieve latest tkcon source:\n$err\n$PRIV(HEADURL)"
} elseif {$code} {
return -code error $err
} else {