[PATCH xfree86] Signed-off-by: Oleh Nykyforchyn <oleh.nyk at gmail.com>

Peter Hutterer peter.hutterer at who-t.net
Sun May 22 19:55:20 PDT 2011

On Fri, May 20, 2011 at 04:30:20PM -0700, Dan Nicholson wrote:
> On Mon, May 16, 2011 at 11:14 PM, Peter Hutterer
> <peter.hutterer at who-t.net> wrote:
> > On Mon, May 16, 2011 at 09:15:51PM +0300, Oleh R. Nykyforchyn wrote:
> >> xfree86: allow negative conditions in "Match*" statements
> >>
> >> Match statement syntax is extended to allow strings like:
> >> "aaa,!a,bbb,!b,ccc,!c"
> >> Match succeedes if an attribute matches aaa, bbb, or ccc, or
> >> does not match neither a, b, or c.
> >>
> >> Signed-off-by: Oleh Nykyforchyn <oleh.nyk at gmail.com>
> >
> > this needs an entry in the man page. I also wonder how long it will take us
> > until we need full regex support...
> We had this conversation before. I had a patch where you specified an
> optional third argument stating what type of match you wanted. It was
> then a trivial patch to add a regex match type. You weren't a huge
> fan, though. :)
> http://lists.x.org/archives/xorg-devel/2010-December/016369.html
> I was reworking it so that it accepted programmer names like "strcmp"
> in addition to "string", but life has gotten in the way quite a bit. I
> still think that would be a useful addition.

right, I remember now. my main grief was that it would have been another
rather specific syntax instead of the quite common s/foo/bar. i don't have a
problem with regex per-se as long as we can get the syntax sorted out.

I've merged these patches but if you think we should hold them back to sort
out where we're going with more complex pattern support, let me know.

> These changes that Oleh is proposing seem good to me at a glance. You
> already merged them, but here's a belated:
> Acked-by: Dan Nicholson <dbn.lists at gmail.com>

added, thanks.


More information about the xorg-devel mailing list