[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: string-strip
From: |
Stefan Monnier |
Subject: |
Re: string-strip |
Date: |
Fri, 07 Jul 2006 23:59:14 -0400 |
User-agent: |
Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) |
> Given that it takes a regexp as argument, I'd say that it *is* expected to
> mess the match data.
> It isn't useful for the function to provide anything in the match
> data. And not saving the match data creates a pitfall that people
> won't generally expect. Therefore, it should save the match data.
Most elisp functions don't bother to save the match data. That's because it
is costly to do and rarely useful.
Stefan