Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au
X-Spam-Level: 
X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,FREEMAIL_FROM,
	T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.co.uk; s=s2048; t=1467756470; bh=XnRtSdKI6O0CMznmpObqwqz6Anyrt2wrlvt1imcu1qI=; h=Date:From:Reply-To:To:Subject:References:From:Subject; b=CqOjoB02hy5CQmDdMkXV/6AK4tJUrx0n5kVZbT1iaWzE1t2+KNfsHZDbv8GKrmouyrcxpIGOk0NKy+pQ0W5OnpVVIznRo/02L6LC5+gnymWBcfLTRAps1fPRMzWp832xbrR8sY222A8Y0oyIWzJmJjcdZZJLqPGseMK9fehWpOLcVMLQl0T/2qV3KiJX9qsf6OYmBYv5dFGqbvup3Y+vzbfuDWYCE6uHZc2brmTofJSBiTDO27iZA2vZusGBPmG8600zQyEUoexia2adl7330lPn512zwXRD38ygVacA18BHa3FfY4ZCfkcDVKx2TEYzgLTAMVCu7zoEx/X1zp1lXw==
X-Yahoo-Newman-Property: ymail-3
X-Yahoo-Newman-Id: 318230.53413.bm@omp1035.mail.ir2.yahoo.com
X-YMail-OSG: aHMxnGAVM1kfrGe.xHRV8SR4.StcwSGiXd5LIQqp0_v5BFl6I.FP5033HScOCXt
 x5MxmOR99NBMTxMJjvoaCVq4hLf7zWg65us7i3on_h4tmDHbbNtiZJJVFpVRwQjC3blFf9pbU10b
 Ra7Vc4XraRR4TkTe_l_Z.miLDQHXOkAE33BIvo_2iduGSl.zeinGfL.FU9CPTWRkPwB.HRctiYCv
 JecfXEiRnOk.B9rlXaXvrHE8ucIgrfCJ_esSZc4S5dxXaXFGKT201.cEpmfSstL6pB5eWhKIS.54
 n9e0PPKfcrmVFrjU1SYUKpuAoiF9GltD0G.S20x.TbFFYwReHVoswQ5HYLFGKw1Hz2WaYbfmlXv2
 8sYbiD7cnMZGMv_WfQUAlttQDc0AAWVkVUB70YIz3P0iT4qN9gotvl5vdmCTXARh9KrgcYZGZEDf
 EbipHJ0O3cyZJZOo86Zhb8mCfsEgS6l22Ma4NBLJnkkk4QfzBDvSixYC937XlmmGFy5cZYXfGT6L
 HO3dt71Es7S.Rov_G7fU-
Date: Tue, 5 Jul 2016 22:07:49 +0000 (UTC)
From: Oliver Kiddle <okiddle@yahoo.co.uk>
Reply-To: Oliver Kiddle <okiddle@yahoo.co.uk>
To:  <zsh-workers@zsh.org>
Message-ID: <812932212.4222957.1467756469555.JavaMail.yahoo@mail.yahoo.com>
Subject: Re: [PATCH] _fc: allow the user to limit the number of events
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 7bit
References: <812932212.4222957.1467756469555.JavaMail.yahoo.ref@mail.yahoo.com>
X-Seq: zsh-workers 38803

Eric Cook wrote:
> +    zstyle -s ":completion:${curcontext}:history-events" history-events _histno

The actual matches are added with just 'events' as the tag so the tag component of this style should be consistent with that.

I'd also agree that the style should have a more generic name. _dates has a max-matches-length style which does the same thing (apart from also allowing a percentage). You might also consider copying the special _next_tags handling from _dates.

> +++ b/Completion/Linux/Command/_sysstat
> @@ -1,4 +1,4 @@
> -#compdef -P mpstat (|cifs)iostat isag sadf sar pidstat
> +#compdef -P mpstat cifsiostat isag sadf sar pidstat

If you remove the pattern, the -P option is not needed here anymore.

Oliver

