summaryrefslogtreecommitdiffstats
path: root/doc/registry.n
diff options
context:
space:
mode:
authordkf <donal.k.fellows@manchester.ac.uk>2007-07-04 14:45:19 (GMT)
committerdkf <donal.k.fellows@manchester.ac.uk>2007-07-04 14:45:19 (GMT)
commite5f7a7f23ddbcd485a524a6fd1f60c2f6787c794 (patch)
tree94204aa6e7eb0c629cb3f07f972124168ebd1e67 /doc/registry.n
parent76681ff9cf616e99686fb280dc3e3f2b891334d9 (diff)
downloadtcl-e5f7a7f23ddbcd485a524a6fd1f60c2f6787c794.zip
tcl-e5f7a7f23ddbcd485a524a6fd1f60c2f6787c794.tar.gz
tcl-e5f7a7f23ddbcd485a524a6fd1f60c2f6787c794.tar.bz2
Remove over-wide lines from nroff output.
Diffstat (limited to 'doc/registry.n')
-rw-r--r--doc/registry.n23
1 files changed, 16 insertions, 7 deletions
diff --git a/doc/registry.n b/doc/registry.n
index d1cb370..a3e3489 100644
--- a/doc/registry.n
+++ b/doc/registry.n
@@ -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: registry.n,v 1.14 2005/05/10 18:34:03 kennykb Exp $
+'\" RCS: @(#) $Id: registry.n,v 1.15 2007/07/04 14:45:19 dkf Exp $
'\"
.so man.macros
.TH registry n 1.1 registry "Tcl Bundled Packages"
@@ -58,12 +58,22 @@ milliseconds, to wait for applications to respond to the broadcast message.
It defaults to 3000. The following example demonstrates how to add a path
to the global Environment and notify applications of the change without
requiring a logoff/logon step (assumes admin privileges):
+.RS
+.PP
.CS
-set regPath {HKEY_LOCAL_MACHINE\\SYSTEM\\CurrentControlSet\\Control\\Session Manager\\Environment}
-set curPath [registry get $regPath "Path"]
-registry set $regPath "Path" "$curPath;$addPath"
-registry broadcast "Environment"
+set regPath [join {
+ HKEY_LOCAL_MACHINE
+ SYSTEM
+ CurrentControlSet
+ Control
+ {Session Manager}
+ Environment
+} "\\\\"]
+set curPath [\fBregistry get\fR $regPath "Path"]
+\fBregistry set\fR $regPath "Path" "$curPath;$addPath"
+\fBregistry broadcast\fR "Environment"
.CE
+.RE
.TP
\fBregistry delete \fIkeyName\fR ?\fIvalueName\fR?
.
@@ -111,7 +121,6 @@ If \fIpattern\fR isn't specified, returns a list of names of all the
values of \fIkeyName\fR. If \fIpattern\fR is specified, only those
names matching \fIpattern\fR are returned. Matching is determined
using the same rules as for \fBstring\fR \fBmatch\fR.
-
.SH "SUPPORTED TYPES"
Each value under a key in the registry contains some data of a
particular type in a type-specific representation. The \fBregistry\fR
@@ -180,6 +189,7 @@ The registry command is only available on Windows.
.SH EXAMPLE
Print out how double-clicking on a Tcl script file will invoke a Tcl
interpreter:
+.PP
.CS
package require registry
set ext .tcl
@@ -193,6 +203,5 @@ set command [\fBregistry get\fR $path {}]
puts "$ext opens with $command"
.CE
-
.SH KEYWORDS
registry