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

Re: [PATCH 3(b)/3] _man: Support _correct_word.



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