(Freplace_match): Adjust the match-data more
authorDavid Kastrup <dak@gnu.org>
Wed, 23 Jun 2004 19:22:25 +0000 (19:22 +0000)
committerDavid Kastrup <dak@gnu.org>
Wed, 23 Jun 2004 19:22:25 +0000 (19:22 +0000)
commit41c0120526af39a1b27c784a9aebeeeae6200cde
tree407c3c48b1ffa83ec19914734da62600ca382332
parent559cdd07454093b88346f8a41aff36fb58c86236
(Freplace_match): Adjust the match-data more
thoroughly when replacing strings in the buffer.
search.c (match-data): When INTEGERS is non-nil and the last match
was in a buffer, add the buffer as last element to the match data.
(Fset_match_data): If an additional element of the match-data is
a buffer, restore it to last_thing_searched.
(save_search_regs): Save last_thing_searched as part of the match
data.
(restore_match_data): Restore it again.
src/search.c