[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: replace-match: end of the replacement text for strings
From: |
Stefan Monnier <address@hidden> |
Subject: |
Re: replace-match: end of the replacement text for strings |
Date: |
16 Sep 2002 09:43:29 -0400 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
>>>>> "Roland" == Roland Winkler <Roland.Winkler@physik.uni-erlangen.de> writes:
> When I use replace-match to operate on a string, is there an easy
> way to find out the end of the replacement text in the string that
> is returned by replace-match (like point in a buffer)? I have in
> mind the situation when the optional arg LITERAL is nil, i.e., the
> replacement text is `derived' from the string that is passed to
> replace-match.
You should be able to get it by looking at the size of the string
before and after replacement as well as the size of the replaced text.
It's a bit round-about, but I can't think of any other way.
Stefan