Re: Plain text matching with regex: RE_PLAIN

2010-09-19 Thread Reuben Thomas
On 19 September 2010 14:33, Bruno Haible wrote: Thanks for the explanation of --local-dir. >> 2. There's a remark that is unclear to me: "(This kind of kitchen-sink >> module is not needed when you >> use the @command{gnulib-tool} option @samp{--makefile-name}.)" How >> does --makefile-name help

Re: Plain text matching with regex: RE_PLAIN

2010-09-19 Thread Bruno Haible
Hello Reuben, > Some questions, having read the documentation: > > 1. There doesn't seem to be a default value for --local-dir. I used > local-lib; is there a recommended value? I use --local-dir=gnulib-local; others use --local-dir=gl/override or --local-dir=gl. > It would be nice to have a de

Re: Plain text matching with regex: RE_PLAIN

2010-09-19 Thread Reuben Thomas
On 15 September 2010 02:54:45 UTC+1, Bruno Haible wrote: >> > Why can't you instead add \ escaping to all existing regex >> > meta-characters >> > that occur in the string, at which point you get the same effect without >> > a >> > new flag? >> >> Because that is error-prone (in particular, I woul

Re: Plain text matching with regex: RE_PLAIN

2010-09-17 Thread Reuben Thomas
On 15 September 2010 02:54, Bruno Haible wrote: > Hi Reuben, > >> > Why can't you instead add \ escaping to all existing regex meta-characters >> > that occur in the string, at which point you get the same effect without a >> > new flag? >> >> Because that is error-prone (in particular, I would ha

Re: Plain text matching with regex: RE_PLAIN

2010-09-14 Thread Bruno Haible
Hi Reuben, > > Why can't you instead add \ escaping to all existing regex meta-characters > > that occur in the string, at which point you get the same effect without a > > new flag? > > Because that is error-prone (in particular, I would have to take the > current syntax into account). Error-pr

Re: Plain text matching with regex: RE_PLAIN

2010-09-14 Thread Reuben Thomas
On 15 September 2010 02:09, Eric Blake wrote: > On 09/14/2010 06:27 PM, Reuben Thomas wrote: >> >> The attached patch adds a new syntax flag, RE_PLAIN. > > Why can't you instead add \ escaping to all existing regex meta-characters > that occur in the string, at which point you get the same effect

Re: Plain text matching with regex: RE_PLAIN

2010-09-14 Thread Eric Blake
On 09/14/2010 06:27 PM, Reuben Thomas wrote: The attached patch adds a new syntax flag, RE_PLAIN. Why can't you instead add \ escaping to all existing regex meta-characters that occur in the string, at which point you get the same effect without a new flag? And while the addition of a new fl

Plain text matching with regex: RE_PLAIN

2010-09-14 Thread Reuben Thomas
With my "maintainer of GNU Zile" hat on, I was improving the searching code recently, and a thought struck me which has often struck me before: the code would be much simpler if I could do non-regex searches using the regex APIs. In particular, I had written (simple) text searching routines, and ha