Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: PATH: autoload with explicit path
On Fri, 27 Jan 2017 10:40:15 -0800
Sebastian Gniazdowski <psprint2@xxxxxxxxxxxx> wrote:
> Internally via autoload it will be easy to create custom versions of
> multiple functions. For example calendar does:
>
> autoload -Uz calendar_{add,parse,read,scandate,show,lockfiles}
>
> With the requested feature
I'm still not clear if your "requested feature" is what I'm talking
about or not, i.e. what you can do already with $funcsourcetrace.
> > It's a bit limiting you can't get that information for any function,
> > since it's alrady available internally in the shfunc structure. I'd be
> > happy to add an associative array in zsh/parameter parallel to
> > $functions, say $function_sources, that gives the information for all
> > functions.
>
> Sounds nice, though it's nice that current implementation of the
> absolute-path feature uses pointers to paths to limit memory usage, a
> new parameter would probably spend that.
The new parameter would only look up the internal information when you
refer to it, there's nothing permanent additional to be stored.
pws
Messages sorted by:
Reverse Date,
Date,
Thread,
Author