Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH] compdescribe fix for unsorted groups (workers/34814) (was: Re: completion: git: --fixup: problem with _describe -2V and duplicate commit subjects)
- X-seq: zsh-workers 35270
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh Hackers' List <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH] compdescribe fix for unsorted groups (workers/34814) (was: Re: completion: git: --fixup: problem with _describe -2V and duplicate commit subjects)
- Date: Sat, 23 May 2015 10:03:24 +0000
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= daniel.shahaf.name; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=mesmtp; bh=7ZCNeT7gecaaEKNpVbLVinC5URc=; b=ibeXjy FIk91aDz6VjdwQTVwh0bXJV6tTOYLFZHJ6TW1maFKCQZb0UOo/ma2B97SxGKKVYE G88/XLrsC7hmWU/5lZM/rhc9XUYu0cOnO426eZSSQJq169RgCe5jYNFAKUI4vKSy FO2lj6BeKPQdsTGpp9NGMMkCx/aqRpTL7tAUA=
- Dkim-signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d= messagingengine.com; h=content-type:date:from:in-reply-to :message-id:mime-version:references:subject:to:x-sasl-enc :x-sasl-enc; s=smtpout; bh=7ZCNeT7gecaaEKNpVbLVinC5URc=; b=CukE/ Qtje+NBshNWemv6zR4FfVr4uKj+JUk1Ri6RIlN9VAreNFz5s/EM5RQTCDuviDBea b6aUBiMCtph/7Mfae91Bqmi+ubmQSeyuooX2r0F6oURvd5mWXpsv2Y3sVnwxpC0R sOS5ecPiIHqZJNXJmaWT56uIWapeTTIpJ9lQUg=
- In-reply-to: <20150520235158.GB2029@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: <5510AAD4.8040807@thequod.de> <20150329054753.GA2766@tarsus.local2> <20150514143627.GE1932@tarsus.local2> <20150519204446.GC1837@tarsus.local2> <150519152300.ZM12361@torch.brasslantern.com> <20150520235158.GB2029@tarsus.local2>
Daniel Shahaf wrote on Wed, May 20, 2015 at 23:51:58 +0000:
> While looking into this, I've also found a 100% CPU consumption bug; to
> reproduce (in master):
So, another summary...
- 35127#1 (fix for _describe -2V with duplicate descriptions): no reason
to hold it back any longer; I'll push it.
- 35227 (duplicate :descriptions message): cosmetic issue. The example
given in that email requires 35127#2, which I'm not going to push yet,
and no other example is known, so this issue is not blocking.
- 35246#tail (infinite loop): pre-existing problem, not related to my
changes (it also happens in 5.0.7, which precedes my changes). No
known instances "in the wild". I'm not currently looking into it.
- 35246#head (_describe output garbled): likewise, a pre-existing
problem with no known instances. Enclosed a patch to record its
existence.
- Empty matches, probably added by cd_get(), are definitely related to
the third issue and may be related to the second and fourth as well.
Is there better way to track all these issues than X-Seq numbers?
---
diff --git a/Completion/Base/Utility/_describe b/Completion/Base/Utility/_describe
index ab72005..76ab1d9 100644
--- a/Completion/Base/Utility/_describe
+++ b/Completion/Base/Utility/_describe
@@ -1,5 +1,12 @@
#autoload
+# ### Note: Calling this function twice during one completion operation, such
+# ### that in each call there exists a pair of items having the same description
+# ### as each other, and the two calls specify the same $_type, currently leads
+# ### to garbled output; see workers/35229 (May 2015) and its thread (which also
+# ### discusses at least two other issues, that may or may not be related to
+# ### this one).
+
# This can be used to add options or values with descriptions as matches.
local _opt _expl _tmpm _tmpd _mlen _noprefix
Messages sorted by:
Reverse Date,
Date,
Thread,
Author