summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiguel Sofer <miguel.sofer@gmail.com>2007-10-27 13:52:02 (GMT)
committerMiguel Sofer <miguel.sofer@gmail.com>2007-10-27 13:52:02 (GMT)
commitee30df8e7dce83db9022d7742013afd0934ba22c (patch)
tree12d0b1d7260e55b9db8ea3db191f75fbd9d0ef0d
parent335056e221f3314f00a82353c10a93880ba46f55 (diff)
downloadtcl-ee30df8e7dce83db9022d7742013afd0934ba22c.zip
tcl-ee30df8e7dce83db9022d7742013afd0934ba22c.tar.gz
tcl-ee30df8e7dce83db9022d7742013afd0934ba22c.tar.bz2
* doc/apply.n: fixed example [Bug 1811791]
* doc/namespace.n: improved example [Bug 1788984] * doc/AddErrInfo.3: typo [Bug 1715087]
-rw-r--r--ChangeLog4
-rw-r--r--doc/AddErrInfo.34
-rw-r--r--doc/apply.n4
-rw-r--r--doc/namespace.n4
4 files changed, 10 insertions, 6 deletions
diff --git a/ChangeLog b/ChangeLog
index cda02d8..34683ff 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
2007-10-27 Miguel Sofer <msofer@users.sf.net>
+ * doc/apply.n: fixed example [Bug 1811791]
+ * doc/namespace.n: improved example [Bug 1788984]
+ * doc/AddErrInfo.3: typo [Bug 1715087]
+
* generic/tclCompile.h:
* generic/tclInt.h: moved declaration of TclSetCmdNameObj from
tclCompile.h to tclInt.h, reverting linker [Bug 1821159] caused by
diff --git a/doc/AddErrInfo.3 b/doc/AddErrInfo.3
index bc32cd1..7195d8f 100644
--- a/doc/AddErrInfo.3
+++ b/doc/AddErrInfo.3
@@ -5,7 +5,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: AddErrInfo.3,v 1.15 2005/09/13 21:23:51 dgp Exp $
+'\" RCS: @(#) $Id: AddErrInfo.3,v 1.16 2007/10/27 13:52:02 msofer Exp $
'\"
.so man.macros
.TH Tcl_AddErrorInfo 3 8.5 Tcl "Tcl Library Procedures"
@@ -161,7 +161,7 @@ operations that were in progress when an error occurred,
and is intended to be human-readable.
The \fB-errorcode\fR option holds a list of items that
are intended to be machine-readable.
-The first item in the \fB-errocode\fR value identifies the class of
+The first item in the \fB-errorcode\fR value identifies the class of
error that occurred
(e.g. POSIX means an error occurred in a POSIX system call)
and additional elements hold additional pieces
diff --git a/doc/apply.n b/doc/apply.n
index 1e69e69..91e6bf0 100644
--- a/doc/apply.n
+++ b/doc/apply.n
@@ -82,10 +82,10 @@ The \fBapply\fR command is also useful for defining callbacks for use in the
\fBtrace\fR command:
.CS
set vbl "123abc"
-trace add variable vbl write {\fBapply\fR {v1 v2 op} {
+trace add variable vbl write {\fBapply\fR {{v1 v2 op} {
upvar 1 $v1 v
puts "updated variable to \\"$v\\""
-}}
+}}}
set vbl 123
set vbl abc
.CE
diff --git a/doc/namespace.n b/doc/namespace.n
index f1af905..4b77a32 100644
--- a/doc/namespace.n
+++ b/doc/namespace.n
@@ -7,7 +7,7 @@
'\" See the file "license.terms" for information on usage and redistribution
'\" of this file, and for a DISCLAIMER OF ALL WARRANTIES.
'\"
-'\" RCS: @(#) $Id: namespace.n,v 1.23 2007/10/26 20:11:53 dgp Exp $
+'\" RCS: @(#) $Id: namespace.n,v 1.24 2007/10/27 13:52:02 msofer Exp $
'\"
.so man.macros
.TH namespace n 8.5 Tcl "Tcl Built-In Commands"
@@ -57,7 +57,7 @@ and they will be passed to \fIscript\fR as additional arguments.
For example, suppose the command
\fBset script [namespace code {foo bar}]\fR
is invoked in namespace \fB::a::b\fR.
-Then \fBeval "$script x y"\fR
+Then \fBeval $script [list x y]\fR
can be executed in any namespace (assuming the value of
\fBscript\fR has been passed in properly)
and will have the same effect as the command