summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-05 15:25:32 (GMT)
committerjan.nijtmans <nijtmans@users.sourceforge.net>2017-01-05 15:25:32 (GMT)
commit586fbb7137499cbf592103824397c253b6355d33 (patch)
treeaec9eb063775011e59ad4c3868b0a56a1ab16854 /doc
parent80b41d4d6dc7bd40f0c92c917c9d356f86cc32c7 (diff)
parent1952bac5479aeb7c7493591cd707ed9ed8ba6b54 (diff)
downloadtcl-586fbb7137499cbf592103824397c253b6355d33.zip
tcl-586fbb7137499cbf592103824397c253b6355d33.tar.gz
tcl-586fbb7137499cbf592103824397c253b6355d33.tar.bz2
Merge trunk
Diffstat (limited to 'doc')
-rw-r--r--doc/info.n7
-rw-r--r--doc/package.n8
2 files changed, 12 insertions, 3 deletions
diff --git a/doc/info.n b/doc/info.n
index 18d390d..509105a 100644
--- a/doc/info.n
+++ b/doc/info.n
@@ -297,10 +297,11 @@ scripts are stored.
This is actually the value of the \fBtcl_library\fR
variable and may be changed by setting \fBtcl_library\fR.
.TP
-\fBinfo loaded \fR?\fIinterp\fR?
+\fBinfo loaded \fR?\fIinterp\fR? \fR?\fIpackage\fR?
.
-Returns a list describing all of the packages that have been loaded into
-\fIinterp\fR with the \fBload\fR command.
+Returns the filename loaded as part of \fIpackage\fR. If \fIpackage\fR
+is not specified, returns a list describing all of the packages
+that have been loaded into \fIinterp\fR with the \fBload\fR command.
Each list element is a sub-list with two elements consisting of the
name of the file from which the package was loaded and the name of
the package.
diff --git a/doc/package.n b/doc/package.n
index 47b2aa6..5687480 100644
--- a/doc/package.n
+++ b/doc/package.n
@@ -12,6 +12,7 @@
package \- Facilities for package loading and version control
.SH SYNOPSIS
.nf
+\fBpackage files\fR \fIpackage\fR
\fBpackage forget\fR ?\fIpackage package ...\fR?
\fBpackage ifneeded \fIpackage version\fR ?\fIscript\fR?
\fBpackage names\fR
@@ -43,6 +44,13 @@ primarily by system scripts that maintain the package database.
The behavior of the \fBpackage\fR command is determined by its first argument.
The following forms are permitted:
.TP
+\fBpackage files\fR \fIpackage\fR
+.
+Lists all files forming part of \fIpackage\fR. Auto-loaded files are not
+included in this list, only files which were directly sourced during package
+initialization. The list order corresponds with the order in which the
+files were sourced.
+.TP
\fBpackage forget\fR ?\fIpackage package ...\fR?
.
Removes all information about each specified package from this interpreter,