bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: find (and friends) bug?


From: Miles Bader
Subject: Re: find (and friends) bug?
Date: 05 Mar 2002 08:39:19 +0900

Paul Eggert <address@hidden> writes:
> Does any program use re_search_2 other than Emacs?  If not, then
> perhaps it ought to be moved to Emacs anyway -- or at least moved out
> of glibc.

I think the ability to use the regexp library to search non-contiguous
blocks of text is useful, and from my experience, even re_search_2
specifically is useful -- I've certainly wanted it in the past.  A
common example is where I'm reading a stream into a series of buffers
(or a ring buffer where there can be two non-contiguous parts), and
want to search for a regexp which I know will be shorter than the
buffer length, but might match at the break-point between two buffers.

What worries me is that this implementation means that the new regexp
is written in a way that makes it _hard_ to do this, requiring emacs or
whatever to simply always use a different implementation.

> Another possibility is that they didn't have time to implement it
> efficently, but would welcome patches to improve performance.  Perhaps
> Ulrich could clarify this issue.

I hope this is the case, and that it's possible using their general framework.

-Miles
-- 
[|nurgle|]  ddt- demonic? so quake will have an evil kinda setting? one that 
            will  make every christian in the world foamm at the mouth? 
[iddt]      nurg, that's the goal 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]