Edi Weitz edi@agharta.de writes:
Anyway, what do you think about this?
I think regex matching would be nice and consistent with Emacs' built in apropos. IMO, it would be more natural if we could do the filtering on the Lisp side. Perhaps we could include some of the lightweight regexp packages, like nregexp. nregexp is only 500 lines and the code can't be worse than the stuff in metering.lisp. Can find other uses for regexps as excuse to including it?
Helmut.
Helmut Eller e9626484@stud3.tuwien.ac.at writes:
I think regex matching would be nice and consistent with Emacs' built in apropos. IMO, it would be more natural if we could do the filtering on the Lisp side. Perhaps we could include some of the lightweight regexp packages, like nregexp. nregexp is only 500 lines and the code can't be worse than the stuff in metering.lisp. Can find other uses for regexps as excuse to including it?
However, compiling at runtime the closures which do the regexp matching seems to take a noticeable amount of time time on some implementations. At least, this is what I observed with Maxima's DESCRIBE, which relies (via cl-info) on L. E. Freil's nregex (if this is the package you were referring to). I haven't done any profiling, though.
Wolfgang
On 21 Apr 2004 01:16:07 +0200, Helmut Eller e9626484@stud3.tuwien.ac.at wrote:
I think regex matching would be nice and consistent with Emacs' built in apropos. IMO, it would be more natural if we could do the filtering on the Lisp side. Perhaps we could include some of the lightweight regexp packages, like nregexp. nregexp is only 500 lines and the code can't be worse than the stuff in metering.lisp.
OK, here's a first attempt. Only mildly tested - gotta go to bed now... :)
nregex was taken from the CVS attic of paserve.
Cheers, Edi.
Edi Weitz edi@agharta.de writes:
OK, here's a first attempt. Only mildly tested - gotta go to bed now... :)
nregex was taken from the CVS attic of paserve.
OK, is now in CVS. I discovered that nregexp is a bit restrictive, e.g., has no alternation '|'. Well, can't have everything in 500 lines.
Thanks for the patch.
Helmut.