home *** CD-ROM | disk | FTP | other *** search
Text File | 1997-12-01 | 906 b | 41 lines | [TEXT/ALFA] |
- Tcl Mode Completions
-
- Use the 'back-quote' key to jump to the next completion, or just position the
- cursor appropriately, and then hit the completion invoking key ('cmd-tab'
- --default, 'tab' --alternative set).
-
- (a) Here are some typical uses of electric completions:
-
- for◊
-
- while◊
-
- switch◊
-
- (b) It's important spell long variable names correctly. Notice that leading
- '$' signs are ignored.
-
- while {$myVeryLongVariableName>0} {
- incr my◊
- }
-
-
- (c) By pressing the invoking key multiple times, you can switch between any
- number of alternative completions both above and below the insertion point.
- If you cycle through all possibilities, the entire name is highlighted so
- you can delete it easily if desired.
-
- set myOtherLongVariable 0
- while {$myVeryLongVariableName>0} {
- incr my◊
- }
-
- set myVariableBelow 0.1
-
-
- proc main {} {
- # just for show
- puts stdout "Hello World"
- exit
- }
-