emacs-devel
[Top][All Lists]
Advanced

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

Re: replace-regexp-in-string, using the dyn scoped variable STR


From: Stefan Monnier
Subject: Re: replace-regexp-in-string, using the dyn scoped variable STR
Date: Thu, 12 Nov 2009 12:05:53 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1.50 (gnu/linux)

>>> `str' has the same value as `m'.
>> No, it doesn't: str is "the whole string" whereas m is only the
>> (match-string 0) part of it
> Which is always a prefix of str, and only different from str if the
> match was empty.

Duh, you're right.  Not sure what I was smoking when I tried replacing
str with m.  So, even more reasons to discourage the use of `str'.


        Stefan




reply via email to

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