about summary refs log tree commit diff
path: root/Doc
diff options
context:
space:
mode:
authorBarton E. Schaefer <schaefer@zsh.org>2015-09-18 10:10:35 -0700
committerBarton E. Schaefer <schaefer@zsh.org>2015-09-18 10:10:35 -0700
commit18d82a6c401758e8bd49fef9478168c68d7d2652 (patch)
treec1bfc9935652b5ce6c0eafb7e25a33a7e6799d32 /Doc
parent18130bed7fa032513261d426b8c3915cf11e20c1 (diff)
downloadzsh-18d82a6c401758e8bd49fef9478168c68d7d2652.tar.gz
zsh-18d82a6c401758e8bd49fef9478168c68d7d2652.tar.xz
zsh-18d82a6c401758e8bd49fef9478168c68d7d2652.zip
cf. users/20586: clean up cross-references to the "Autoloading Functions" doc
Diffstat (limited to 'Doc')
-rw-r--r--Doc/Zsh/builtins.yo18
1 files changed, 10 insertions, 8 deletions
diff --git a/Doc/Zsh/builtins.yo b/Doc/Zsh/builtins.yo
index 5bbe7e70b..67e3131cb 100644
--- a/Doc/Zsh/builtins.yo
+++ b/Doc/Zsh/builtins.yo
@@ -144,8 +144,12 @@ findex(autoload)
 cindex(functions, autoloading)
 cindex(autoloading functions)
 item(tt(autoload) [ {tt(PLUS())|tt(-)}tt(TUXkmtz) ] [ tt(-w) ] [ var(name) ... ])(
+vindex(fpath, searching)
 Equivalent to tt(functions -u), with the exception of tt(-X)/tt(+X) and
-tt(-w).
+tt(-w).  See the section `Autoloading Functions' in ifzman(zmanref(zshmisc))\
+ifnzman(noderef(Functions)) for full details.  The tt(fpath) parameter
+will be searched to find the function definition when the function is
+first referenced.
 
 The flag tt(-X) may be used only inside a shell function, and may not be
 followed by a var(name).  It causes the calling function to be marked for
@@ -170,7 +174,8 @@ pattern are loaded.
 
 With the tt(-w) flag, the var(name)s are taken as names of files compiled
 with the tt(zcompile) builtin, and all functions defined in them are
-marked for autoloading.
+marked for autoloading.  Note this does not otherwise change the search
+order for 
 
 The flags tt(-z) and tt(-k) mark the function to be autoloaded using the
 zsh or ksh style, as if the option tt(KSH_AUTOLOAD) were unset or were
@@ -1981,12 +1986,8 @@ for this function; the flag tt(-T) does the same, but turns off tracing
 on any function called from the present one, unless that function also
 has the tt(-t) or tt(-T) flag.  The tt(-u) and tt(-U) flags cause the
 function to be marked for autoloading; tt(-U) also causes alias
-expansion to be suppressed when the function is loaded.  The tt(fpath)
-parameter will be searched to find the function definition when the
-function is first referenced; see noderef(Functions). The tt(-k) and
-tt(-z) flags make the function be loaded using ksh-style or zsh-style
-autoloading respectively. If neither is given, the setting of the
-tt(KSH_AUTOLOAD) option determines how the function is loaded.
+expansion to be suppressed when the function is loaded.  See the
+description of the `tt(autoload)' builtin for details.
 
 Note that the builtin tt(functions) provides the same basic capabilities
 as tt(typeset -f) but gives access to a few extra options.
@@ -2338,6 +2339,7 @@ noderef(Functions)
 for a description of how autoloaded functions are searched.  The
 extension tt(.zwc) stands for `zsh word code'.
 
+vindex(fpath, with zcompile)
 If there is at least one var(name) argument, all the named files
 are compiled into the output var(file) given as the first argument.  If
 var(file) does not end in tt(.zwc), this extension is automatically