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

Re: PATCH: _a2ps completion



[ Akim not CC'ed, this is zsh-internal. ]

Zefram wrote:

> Sven Wischnowsky wrote:
> >Ok, I wasn't aware of the possibilities of *newer versions* of GNU
> >a2ps. So I change my statement to: I'm very much against completing
> >all files unconditionally. We should do that only if the a2ps is a
> >newer GNU version that supports automatic conversion and whatnot. Ok?
> 
> I too didn't know a2ps had changed to do this stuff.  Considering
> only older versions, I'm still in favour of completing all files
> unconditionally.  PostScript (and HTML, and TeX) files are perfectly
> valid text files, and therefore perfectly valid subjects for all commands
> that deal with text files, including a program that renders plain text
> in PostScript.

I can't stop thinking about this...

The advantage of using a glob-pattern over using ignored-patterns is
the automatic fall back first on only directories and then all files
(or whatever you have configured).

Is this a valid reason to add a `glob-pattern' (or `file-pattern')
style that is tested in _files and used to replace a function-supplied 
pattern if there is any or to make _files use the pattern even if he
calling function did not use -g? Or is this a case of `if you want
that behaviour, copy and modify the completion function'?

Bye
 Sven


--
Sven Wischnowsky                         wischnow@xxxxxxxxxxxxxxxxxxxxxxx



Messages sorted by: Reverse Date, Date, Thread, Author