+proc settabs {{firstab {}}} {
+ global firsttabstop tabstop textfont ctext have_tk85
+
+ if {$firstab ne {} && $have_tk85} {
+ set firsttabstop $firstab
+ }
+ set w [font measure $textfont "0"]
+ if {$firsttabstop != 0} {
+ $ctext conf -tabs [list [expr {$firsttabstop * $w}] \
+ [expr {($firsttabstop + $tabstop) * $w}]]
+ } elseif {$have_tk85 || $tabstop != 8} {
+ $ctext conf -tabs [expr {$tabstop * $w}]
+ } else {
+ $ctext conf -tabs {}
+ }
+}
+