Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
Overview
Comment: | Find namespaces in debug proc editor. Removed some unused code. |
---|---|
Downloads: | Tarball | ZIP archive |
Timelines: | family | ancestors | descendants | both | trunk |
Files: | files | file ages | folders |
SHA1: |
946b36277013a1d2c613578c600931d2 |
User & Date: | peter 2015-03-16 21:45:17.597 |
Context
2015-03-17
| ||
23:39 | Document -sep flag check-in: 6a4c3347f1 user: peter tags: trunk | |
2015-03-16
| ||
21:45 | Find namespaces in debug proc editor. Removed some unused code. check-in: 946b362770 user: peter tags: trunk | |
20:24 | Removed debug function check-in: f48faa0aad user: peter tags: trunk | |
Changes
Changes to src/debug.tcl.
︙ | ︙ | |||
44 45 46 47 48 49 50 | $m.debug add command -label "Edit" -command ProcEditor -underline 0 return $m.debug } proc ProcEditorUpdate {a k} { # Only update on keys generating characters | | > > > > > > > > > > | 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 | $m.debug add command -label "Edit" -command ProcEditor -underline 0 return $m.debug } proc ProcEditorUpdate {a k} { # Only update on keys generating characters if {$a eq "" || ![string is graph $a]} return #puts "Key '$a' '$k'" set p [info procs $::ProcEditor(proc)] if {$p eq "" && $::ProcEditor(proc) ne ""} { # Try prefix matching set p [info procs $::ProcEditor(proc)*] # Include namespaces if starting with :: if {[string match "::*" $::ProcEditor(proc)]} { if {[regexp {^(.*::)([^:]*)$} $::ProcEditor(proc) -> ns pat]} { if {[namespace exists $ns]} { set child [namespace children $ns $pat*] lappend p {*}$child } } } } set p [lsort -dictionary $p] $::ProcEditor(procW) configure -values $p # Keep the first set p [lindex $p 0] if {$p eq ""} { |
︙ | ︙ |
Changes to src/eskil.tcl.
︙ | ︙ | |||
2608 2609 2610 2611 2612 2613 2614 | set lines [lsort -integer [regexp -all -inline {\d+} $t]] set froml [lindex $lines 0] set tol [lindex $lines end] set ::eskil($top,separatelines$n) [list $froml $tol] if {[info exists ::eskil($top,separate1)] && \ [info exists ::eskil($top,separate2)]} { | < | | < < < < < < < < < < < < | 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 | set lines [lsort -integer [regexp -all -inline {\d+} $t]] set froml [lindex $lines 0] set tol [lindex $lines end] set ::eskil($top,separatelines$n) [list $froml $tol] if {[info exists ::eskil($top,separate1)] && \ [info exists ::eskil($top,separate2)]} { cloneDiff $top [concat $::eskil($top,separatelines1) \ $::eskil($top,separatelines2)] unset ::eskil($top,separate1) unset ::eskil($top,separate2) } } proc hlPopup {top n hl X Y x y} { if {[info exists ::eskil($top,nopopup)] && $::eskil($top,nopopup)} return |
︙ | ︙ | |||
2905 2906 2907 2908 2909 2910 2911 | doDiff $top return $top } # Create a new diff window equal to another, except for possibly a range proc cloneDiff {other {range {}}} { | | | 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 | doDiff $top return $top } # Create a new diff window equal to another, except for possibly a range proc cloneDiff {other {range {}}} { set top [makeDiffWin $other] update foreach item [array names ::eskil $other,*] { regsub {^[^,]*,} $item {} item set ::eskil($top,$item) $::eskil($other,$item) } if {[llength $range] != 0} { |
︙ | ︙ | |||
2958 2959 2960 2961 2962 2963 2964 | $dMenu add command -label "Normal Cursor" \ -command [list normalCursor $top] $dMenu add separator # Runtime disable of C version of DiffUtil $dMenu add command -label "Tcl DiffUtil" -command DisableDiffUtilC $dMenu add command -label "Evalstats" -command {evalstats} $dMenu add command -label "_stats" -command {parray _stats} | < < > | | 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 | $dMenu add command -label "Normal Cursor" \ -command [list normalCursor $top] $dMenu add separator # Runtime disable of C version of DiffUtil $dMenu add command -label "Tcl DiffUtil" -command DisableDiffUtilC $dMenu add command -label "Evalstats" -command {evalstats} $dMenu add command -label "_stats" -command {parray _stats} } # Build the main window # "other" is related window. Currently unused proc makeDiffWin {{other {}}} { global tcl_platform # Locate a free toplevel name if {[info exists ::eskil(topDiffCnt)]} { set t $::eskil(topDiffCnt) } else { set t 0 |
︙ | ︙ | |||
3127 3128 3129 3130 3131 3132 3133 | $top.m.ms add command -label "Text search not available" \ -state disabled } $top.m add cascade -label "Tools" -underline 0 -menu $top.m.mt menu $top.m.mt $top.m.mt add command -label "New Diff Window" -underline 0 \ | | | 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 | $top.m.ms add command -label "Text search not available" \ -state disabled } $top.m add cascade -label "Tools" -underline 0 -menu $top.m.mt menu $top.m.mt $top.m.mt add command -label "New Diff Window" -underline 0 \ -command [list makeDiffWin $top] $top.m.mt add command -label "Directory Diff" -underline 0 \ -command makeDirDiffWin $top.m.mt add command -label "Clip Diff" -underline 0 \ -command makeClipDiffWin $top.m.mt add command -label "Merge" -underline 0 \ -command [list makeMergeWin $top] -state disabled $top.m.mt add command -label "Edit Mode" -underline 0 \ |
︙ | ︙ | |||
4279 4280 4281 4282 4283 4284 4285 | set ReturnAfterLoop 0 set first 1 foreach file $files { if {$first} { set first 0 } else { # Create new window for other files | | | 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 | set ReturnAfterLoop 0 set first 1 foreach file $files { if {$first} { set first 0 } else { # Create new window for other files set top [makeDiffWin $top] update # It is preferable to see the end if the rev string is too long $::widgets($top,rev1) xview end $::widgets($top,rev2) xview end } set fullname $file set fulldir [file dirname $fullname] |
︙ | ︙ |
Changes to src/help.tcl.
︙ | ︙ | |||
18 19 20 21 22 23 24 | # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # #---------------------------------------------------------------------- # $Revision$ #---------------------------------------------------------------------- | < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < < | 18 19 20 21 22 23 24 25 26 27 28 29 30 31 | # the Free Software Foundation, Inc., 59 Temple Place - Suite 330, # Boston, MA 02111-1307, USA. # #---------------------------------------------------------------------- # $Revision$ #---------------------------------------------------------------------- # A simple window for displaying e.g. help. # Returns the frame where things can be put. proc helpWin {w title} { destroy $w toplevel $w -padx 2 -pady 2 wm title $w $title |
︙ | ︙ |