Yegappan wrote:

> >> >> The getcompletion() function applies the 'wildignore' option setting
> >> >> and removes all the entries matching the file patterns in
> >> >> 'wildignore'. Currently, there is no way to disable this. Do you think
> >> >> we should add a 'flag' argument to getcompletion() to ignore/support
> >> >> 'wildignore'?
> >> >
> >> > Yes, that makes sense.  Perhaps a generic flag whether to return what
> >> > would happen on the command line, or the "full result" without
> >> > filtering.  We should also document that 'wildignore' is used for
> >> > getcompletion(), it only mentions expand() and glob().
> >> >
> >>
> >> I am attaching a patch to add an optional argument to the
> >> getcompletion() function. When the optional argument is set
> >> to TRUE, then the 'wildignore' and 'wildignore' settings are
> >> applied. Otherwise the unfiltered results are returned.
> >
> > Hmm, despite the similarity in name, 'wildignore' and 'wildignorecase'
> > do very different things.  I think 'wildignorecase' should always be
> > used.  Thus the extra argument only controls 'wildignore'.  Thus it's a
> > flag to switch between "all results" and "filtered results".  While
> > 'wildignorecase' changes what matches, which I would think should always
> > happen.
> >
> 
> An updated patch is attached to do the above.

Thanks.  I'll add a test case.

-- 
hundred-and-one symptoms of being an internet addict:
15. Your heart races faster and beats irregularly each time you see a new WWW
    site address in print or on TV, even though you've never had heart
    problems before.

 /// Bram Moolenaar -- [email protected] -- http://www.Moolenaar.net   \\\
///        sponsor Vim, vote for features -- http://www.Vim.org/sponsor/ \\\
\\\  an exciting new programming language -- http://www.Zimbu.org        ///
 \\\            help me help AIDS victims -- http://ICCF-Holland.org    ///

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Raspunde prin e-mail lui