summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--doc/library.n11
1 files changed, 10 insertions, 1 deletions
diff --git a/doc/library.n b/doc/library.n
index 215a569..efdcb5a 100644
--- a/doc/library.n
+++ b/doc/library.n
@@ -16,6 +16,7 @@ library \- standard library of Tcl procedures
\fBauto_execok \fIcmd\fR
\fBauto_load \fIcmd\fR
\fBauto_mkindex \fIdir pattern pattern ...\fR
+\fBauto_mkindex_old \fIdir pattern pattern ...\fR
\fBauto_reset\fR
\fBparray \fIarrayName\fR
.VS
@@ -121,7 +122,15 @@ For example, the command
will read all the \fB.tcl\fR files in subdirectory \fBfoo\fR
and generate a new index file \fBfoo/tclIndex\fR.
.PP
-\fBAuto_mkindex\fR parses the Tcl scripts in a relatively
+\fBAuto_mkindex\fR parses the Tcl scripts by sourcing them
+into a slave interpreter and monitoring the proc and
+namespace commands that are executed.
+Extensions can use the (undocumented)
+auto_mkindex_parser package to register other commands that
+can contribute to the auto_load index.
+You will have to read through init.tcl to see how this works.
+.PP
+\fBAuto_mkindex_old\fR parses the Tcl scripts in a relatively
unsophisticated way: if any line contains the word \fBproc\fR
as its first characters then it is assumed to be a procedure
definition and the next word of the line is taken as the