1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 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 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211
|
Patch by Sergei Golovan fixes errors in manual pages (several words started
with a dot are treated as undefined macros). Also, -full is treated as an argument.
--- a/modules/chatwidget/chatwidget.man
+++ b/modules/chatwidget/chatwidget.man
@@ -63,7 +63,7 @@
Control the names and tags associated with names.
[list_begin commands]
[cmd_def "list [opt [arg -full]]"]
-Returns a list of all the user names from the names view. If [opt \
+Returns a list of all the user names from the names view. If [arg \
-full] is given then the list returned is a list of lists where each
sublist is made up of the nick followed by any options that have been
set on this nick entry. This may be used to examine any application
@@ -104,17 +104,17 @@
[section EXAMPLE]
[example {
-chatwidget::chatwidget .chat
-proc speak {w msg} {$w message $msg -nick user}
-.chat hook add post [list speak .chat]
-pack .chat -side top -fill both -expand 1
-.chat topic show
-.chat topic set "Chat widget demo"
-.chat name add "admin" -group admin
-.chat name add "user" -group users -color tomato
-.chat message "Chatwidget ready" -type system
-.chat message "Hello, user" -nick admin
-.chat message "Hello, admin" -nick user
+ chatwidget::chatwidget .chat
+ proc speak {w msg} {$w message $msg -nick user}
+ .chat hook add post [list speak .chat]
+ pack .chat -side top -fill both -expand 1
+ .chat topic show
+ .chat topic set "Chat widget demo"
+ .chat name add "admin" -group admin
+ .chat name add "user" -group users -color tomato
+ .chat message "Chatwidget ready" -type system
+ .chat message "Hello, user" -nick admin
+ .chat message "Hello, admin" -nick user
}]
[para]
--- a/modules/history/tklib_history.man
+++ b/modules/history/tklib_history.man
@@ -46,7 +46,7 @@
This command queries or sets configuration options. Currently the options recognized
are [arg length] and [arg alert]. Setting the length determines the number of history entries to keep for
-the named Entry. Alert specifies the command to run when the user reaches the end of the history, it defaults to [call bell]. Although configure requires a [arg pathName] argument, the setting for alert is global and the path is ignored.
+the named Entry. Alert specifies the command to run when the user reaches the end of the history, it defaults to [cmd bell]. Although configure requires a [arg pathName] argument, the setting for alert is global and the path is ignored.
[list_end]
--- a/modules/ntext/ntextIndent.man
+++ b/modules/ntext/ntextIndent.man
@@ -183,7 +183,7 @@
[example {
set foo [.t index end]
-.t insert end {This line was added by the script, not the keyboard!}
+ .t insert end {This line was added by the script, not the keyboard!}
::ntext::wrapIndent .t $foo end
}]
@@ -197,7 +197,7 @@
To switch to [arg -wrap] [arg char] mode:
[example {
-.t configure -wrap char
+ .t configure -wrap char
::ntext::wrapIndent .t
}]
--- a/modules/tooltip/tooltip.man
+++ b/modules/tooltip/tooltip.man
@@ -123,54 +123,54 @@
[section EXAMPLE]
[example {
-# Demonstrate widget tooltip
-package require tooltip
-pack [label .l -text "label"]
-tooltip::tooltip .l "This is a label widget"
+ # Demonstrate widget tooltip
+ package require tooltip
+ pack [label .l -text "label"]
+ tooltip::tooltip .l "This is a label widget"
}]
[example {
-# Demonstrate menu tooltip
-package require tooltip
-. configure -menu [menu .menu]
-.menu add cascade -label Test -menu [menu .menu.test -tearoff 0]
-.menu.test add command -label Tooltip
-tooltip::tooltip .menu.test -index 0 "This is a menu tooltip"
+ # Demonstrate menu tooltip
+ package require tooltip
+ . configure -menu [menu .menu]
+ .menu add cascade -label Test -menu [menu .menu.test -tearoff 0]
+ .menu.test add command -label Tooltip
+ tooltip::tooltip .menu.test -index 0 "This is a menu tooltip"
}]
[example {
-# Demonstrate canvas item tooltip
-package require tooltip
-pack [canvas .c]
-set item [.c create rectangle 10 10 80 80 -fill red]
-tooltip::tooltip .c -item $item "Canvas item tooltip"
+ # Demonstrate canvas item tooltip
+ package require tooltip
+ pack [canvas .c]
+ set item [.c create rectangle 10 10 80 80 -fill red]
+ tooltip::tooltip .c -item $item "Canvas item tooltip"
}]
[example {
-# Demonstrate listbox item tooltip
-package require tooltip
-pack [listbox .lb]
-.lb insert 0 "item one"
-tooltip::tooltip .lb -item 0 "Listbox item tooltip"
+ # Demonstrate listbox item tooltip
+ package require tooltip
+ pack [listbox .lb]
+ .lb insert 0 "item one"
+ tooltip::tooltip .lb -item 0 "Listbox item tooltip"
}]
[example {
-# Demonstrate ttk::notebook tab tooltip
-package require tooltip
-pack [ttk::notebook .nb]
-.nb add [frame .nb.f1 -height 50] -text "First tab"
-.nb add [frame .nb.f2 -height 50] -text "Second tab"
-tooltip::tooltip .nb -tab 0 "Tooltip for the 1st notebook tab"
-tooltip::tooltip .nb -tab 1 "Tooltip for the 2nd notebook tab"
+ # Demonstrate ttk::notebook tab tooltip
+ package require tooltip
+ pack [ttk::notebook .nb]
+ .nb add [frame .nb.f1 -height 50] -text "First tab"
+ .nb add [frame .nb.f2 -height 50] -text "Second tab"
+ tooltip::tooltip .nb -tab 0 "Tooltip for the 1st notebook tab"
+ tooltip::tooltip .nb -tab 1 "Tooltip for the 2nd notebook tab"
}]
[example {
-# Demonstrate text tag tooltip
-package require tooltip
-pack [text .txt]
-.txt tag configure TIP-1 -underline 1
-tooltip::tooltip .txt -tag TIP-1 "tooltip one text"
-.txt insert end "An example of a " {} "tooltip" TIP-1 " tag.\n" {}
+ # Demonstrate text tag tooltip
+ package require tooltip
+ pack [text .txt]
+ .txt tag configure TIP-1 -underline 1
+ tooltip::tooltip .txt -tag TIP-1 "tooltip one text"
+ .txt insert end "An example of a " {} "tooltip" TIP-1 " tag.\n" {}
}]
[vset CATEGORY tooltip]
[include ../../support/devel/doc/feedback.inc]
--- a/modules/diagrams/include/elementq.inc
+++ b/modules/diagrams/include/elementq.inc
@@ -22,7 +22,8 @@
[[[$elem $corner1] $corner2] ...]
}]
-assuming that the value for [example { [$elem $corner1] }], etc. is
+assuming that the value for [example { [$elem $corner1] }]
+etc. is
again an element.
[call [arg element] [opt "[arg corner1]... [opt "[method names] [opt [arg pattern]]"]]"]]
@@ -33,5 +34,6 @@
[[[$elem $corner1] ...] names ?pattern?]
}]
-assuming that the value for [example { [$elem $corner1] }], etc. is
+assuming that the value for [example { [$elem $corner1] }]
+etc. is
again an element.
--- a/modules/menubar/menubar.man
+++ b/modules/menubar/menubar.man
@@ -543,9 +543,9 @@
modifier characters are supported as show in the table below.
[example_begin]
-'' ::= global scope (no character)
-'@' ::= local scope modifier
-'=' ::= notebook tab scope modifier
+ '' ::= global scope (no character)
+ '@' ::= local scope modifier
+ '=' ::= notebook tab scope modifier
[example_end]
[para]
--- a/modules/widgetl/widget_listentry.man
+++ b/modules/widgetl/widget_listentry.man
@@ -208,7 +208,8 @@
[para] The use case for this callback is essentially
[term {input normalization}]. The most simple case of such would be, for
-example the use of [example {string tolower}] to impose a standard letter
+example the use of [example {string tolower}]
+to impose a standard letter
case on the data. More complex example can be thought of, like rewriting
of multiple syntaxes of input to a canonical form.
|