Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] Add API wrapper to ${+_comps[...]}
- X-seq: zsh-workers 36767
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH] Add API wrapper to ${+_comps[...]}
- Date: Sat, 3 Oct 2015 17:49:19 -0700
- In-reply-to: <20150930182948.GD2003@tarsus.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20150930182948.GD2003@tarsus.local2>
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