Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 3(b)/3] _man: Support _correct_word.
- X-seq: zsh-workers 38999
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [PATCH 3(b)/3] _man: Support _correct_word.
- Date: Thu, 04 Aug 2016 21:47:28 +0000
- In-reply-to: <CAH+w=7ayiaObcLHxZ6m7Ztj4Kzgm3mjvb0JywpCWcHYyJjQSSQ@mail.gmail.com>
- 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: <1470326066-3241-1-git-send-email-danielsh@tarsus.local2> <1470326066-3241-5-git-send-email-danielsh@tarsus.local2> <20160804170809.0f972f07@pwslap01u.europe.root.pri> <CAH+w=7ayiaObcLHxZ6m7Ztj4Kzgm3mjvb0JywpCWcHYyJjQSSQ@mail.gmail.com>
Bart Schaefer wrote on Thu, Aug 04, 2016 at 09:28:44 -0700:
> On Thu, Aug 4, 2016 at 9:08 AM, Peter Stephenson
> <p.stephenson@xxxxxxxxxxx> wrote:
> > On Thu, 4 Aug 2016 15:54:26 +0000
> > Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> wrote:
> >> Since compfiles is undocumented, avoid its use altogether, replacing it by
> >> a construct that blackbox analysis suggests to be equivalent.
> >
> > This is likely to be saner, if it works.
>
> I'll just point out that this proposed change means that _man_pages no
> longer accepts the -M argument to add a matcher spec.
Might you have misread the diff?
Before this patch, -M was handled twice: both by the zparseopts call and
by compadd. With this patch, -M is only handled by compadd.
Empirically, matchspecs are honoured:
% zstyle :completion:\* matcher-list '' "r:|::=* r:|=*"
% man X::L::Pat<TAB>
<becomes>
% man XML::Lib::Pattern
I tried to clarify this in the log message.
Cheers,
Daniel
Messages sorted by:
Reverse Date,
Date,
Thread,
Author