Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: [PATCH] Add API wrapper to ${+_comps[...]}



On Sep 30,  6:29pm, Daniel Shahaf wrote:
} 
} I wonder if this is useful enough to be added?

(Why two separate patches both to compsys.yo?)

I don't see any particular reason not to add it, but I also find
no existence tests of $_comps[...] anywhere in the contributed
functions or my own local startup files or functions, so it may
indeed be only minimally useful.

On the other hand there are tests for whether a particular function
is defined.  If that function is destined to be assigned to _comps[x]
perhaps it would be better to check for _comps[x] already defined
instead.



Messages sorted by: Reverse Date, Date, Thread, Author