25247 with further modifications: add $funcsourcetrace

This commit is contained in:
Peter Stephenson
2008-08-11 19:22:54 +00:00
parent 2e485d60ff
commit 2853ca830a
14 changed files with 167 additions and 18 deletions

View File

@@ -164,6 +164,16 @@ item(tt(userdirs))(
This associative array maps user names to the pathnames of their home
directories.
)
vindex(funcsourcetrace)
item(tt(funcsourcetrace))(
This array contains the file names and line numbers of the
points where the functions currently being executed were
defined. The line number is the line where the `tt(function) var(name)'
or `var(name) tt(LPAR()RPAR())' started. In the case of an autoloaded
function in native zsh format where only the body of the function occurs
in the file the line number is reported as zero.
The format of each element is var(filename)tt(:)var(lineno).
)
vindex(funcstack)
item(tt(funcstack))(
This array contains the names of the functions currently being
@@ -174,6 +184,6 @@ vindex(functrace)
item(tt(functrace))(
This array contains the names and line numbers of the callers
corresponding to the functions currently being executed.
The format of each element is name:lineno.
The format of each element is var(name)tt(:)var(lineno).
)
enditem()