diff options
author | dkf <donal.k.fellows@manchester.ac.uk> | 2012-05-25 14:49:30 (GMT) |
---|---|---|
committer | dkf <donal.k.fellows@manchester.ac.uk> | 2012-05-25 14:49:30 (GMT) |
commit | b317e4d6a30ce58b28482a6b884f3aed5a3f05f7 (patch) | |
tree | 38aeffc01277130f218bfb42a5536c7285beccc0 | |
parent | 4a6df05f757a4b54a41154e1ede8c06d2e038362 (diff) | |
download | tcl-b317e4d6a30ce58b28482a6b884f3aed5a3f05f7.zip tcl-b317e4d6a30ce58b28482a6b884f3aed5a3f05f7.tar.gz tcl-b317e4d6a30ce58b28482a6b884f3aed5a3f05f7.tar.bz2 |
[Bug 3528418]: Document what is going on with respect to qualification of
command prefixes in ensemble subcommand maps.
-rw-r--r-- | ChangeLog | 6 | ||||
-rw-r--r-- | doc/Ensemble.3 | 2 | ||||
-rw-r--r-- | doc/namespace.n | 5 |
3 files changed, 12 insertions, 1 deletions
@@ -1,3 +1,9 @@ +2012-05-25 Donal K. Fellows <dkf@users.sf.net> + + * doc/namespace.n, doc/Ensemble.3: [Bug 3528418]: Document what is + going on with respect to qualification of command prefixes in ensemble + subcommand maps. + 2012-05-25 Jan Nijtmans <nijtmans@users.sf.net> * win/tclWinDde.c: [Bug 473946]: special characters not correctly sent, diff --git a/doc/Ensemble.3 b/doc/Ensemble.3 index 5a5842d..bc743c2 100644 --- a/doc/Ensemble.3 +++ b/doc/Ensemble.3 @@ -148,6 +148,8 @@ code (TCL_OK, or TCL_ERROR if the token does not refer to an ensemble) and the dictionary obtained from \fBTcl_GetEnsembleMappingDict\fR should always be treated as immutable even if it is unshared. +All command names in prefixes set via \fBTcl_SetEnsembleMappingDict\fR +must be fully qualified. .TP \fBsubcommand list\fR (read-write) A list of all the subcommand names for the ensemble, or NULL if this diff --git a/doc/namespace.n b/doc/namespace.n index ddf7b51..8b26786 100644 --- a/doc/namespace.n +++ b/doc/namespace.n @@ -714,7 +714,10 @@ When non-empty, this option supplies a dictionary that provides a mapping from subcommand names to a list of prefix words to substitute in place of the ensemble command and subcommand words (in a manner similar to an alias created with \fBinterp alias\fR; the words are not -reparsed after substitution). When this option is empty, the mapping +reparsed after substitution); if the first word of any target is not +fully qualified when set, it is assumed to be relative to the +\fIcurrent\fR namespace and changed to be exactly that (that is, it is +always fully qualified when read). When this option is empty, the mapping will be from the local name of the subcommand to its fully-qualified name. Note that when this option is non-empty and the \fB\-subcommands\fR option is empty, the ensemble subcommand names |