Skip to content
Tcl Source Code Changes To Proposed changes to the Tcl/Tk manual pages
Login

Changes To Proposed changes to the Tcl/Tk manual pages

Changes to "Proposed changes to the Tcl/Tk manual pages" between 2026-01-30 12:21:00 and 2026-03-05 09:41:24

1
2
3
4
5
6
7

8
9
10
11
12
13
14
1
2
3
4
5
6

7
8
9
10
11
12
13
14






-
+







This page proposes some changes to the content of the Tcl (and Tk) manual pages, as follow-up to [TIP 700](wiki:branch/tip-700).

# General changes

## Overall structure/outline of manual pages

Sections should be the same in all cases:
The sections (first level of the outline) of the manual pages should be the same in all cases and follow this order:

- Name
- Synopsis
- Description (subsections for each subcommand)
- ... (additional sections possible here for individual pages needing them)
- Examples (subsections for grouping examples, if needed)
- Portability issues (if applicable)
︙
82
83
84
85
86
87
88


89
90
91
92
93
94
95
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97







+
+







If this seems odd to some people, it may help to know that these terms will be rendered differently anyway and should be written using the semantic markdown outlined in TIP 700. This mean, the above sentences would turn into markdown like this:

> [ms]{.arg} must be an integer giving a time in milliseconds.

> ... that was previously scheduled. [id]{.arg} indicates which command ...

Imagine these arguments are rendered with a different font and colour (possibly with another background colour) consistent with how they look like in the command line definition itself, then capitalization does not make sense at all and the rendering makes sure that no-one really would expect this anymore.

In general, arguments that are variable names should be marked as such (e.g. we now have `listVar`, `variableList`, `varName`). A uniform naming scheme is recommended here, using camelCase to avoid misunderstandings. camelCase is good for the names of longer arguments. It makes them easier to read (as a replacement of the space that otherwise would separate words) and avoids odd readings (e.g. `adict` vs `aDict`). However, abbreviation should be used sparsely (the current dictionary manual pages use "dictionaryValue" and "dictionaryVariable"). Although a long word, using these full versions avoids misunderstandings and no glossary is needed to explain that "var..." means variables and "a..." means the value inside a variable.

# Changes in specific manual pages

## Tcl → Tcl.n

1. The Tcl.n page has a section "SYNOPSIS" but it contains nothing in terms of syntax compared to the other pages. It just says "Summary of Tcl language syntax". Unclear what to do about it here. Maybe, this page is a special case.

︙
173
174
175
176
177
178
179

180
181
182
183
184
185
186
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189







+







## Tcl → trace
1. When an execution trace is active on a procedure, the trace will be removed when redefining this procedure (overwriting it with [proc ...].) This seems not to be documented on the page.


## Tcl → try
1. Mention that `try {some script}` will stop execution and report an error if there is one. It is not the same as `catch {some script}`. What happens when leaving out all optional arguments is currently only mentioned in this phrase: "(or the body if no handler matched) is allowed to continue to propagate", and this is is very difficult to decode and understand.
2. Mention that `catch {some script}` is equivalent to `try {some script} on error {} {}`
3. The page mentions the "options dictionary of the interpreter" which can be retrieved when an error occurs. The page does, however, not explain how this dictionary look like. A link to the [return] and [catch] manual pages should be inserted here where the dictionary is explained.


## Tcl → update
1. As `update` is considered harmful, this warning and more info should be added to that manual page and an example should be given how to use it properly or what to use instead of `update`.

------

︙