Richard Ketchersid <ketchers(a)math.ucla.edu> writes:
Some fairly recent change in replace-match is causing the following
error in x-symbol-mode.
Oops. Mea culpa. I remember I changed this code when I was
reading FSF Emacs' code. Thanks for bug report in good
time. One more day and it would be a little bit difficult
to narrow down the changes because I'm going to apply other
patches related to this area.
2000-11-29 Yoshiki Hayashi <yoshiki(a)xemacs.org>
* search.c (string_match_1): Don't set last_thing_searched
when search failed.
Index: search.c
===================================================================
RCS file: /usr/CVSroot/XEmacs/xemacs/src/search.c,v
retrieving revision 1.14.2.15
diff -u -r1.14.2.15 search.c
--- search.c 2000/11/15 10:39:45 1.14.2.15
+++ search.c 2000/11/29 04:29:12
@@ -413,10 +410,10 @@
XSTRING_LENGTH (string) - bis,
&search_regs);
}
- last_thing_searched = Qt;
if (val == -2)
matcher_overflow ();
if (val < 0) return Qnil;
+ last_thing_searched = Qt;
fixup_search_regs_for_string (string);
return make_int (bytecount_to_charcount (XSTRING_DATA (string), val));
}
--
Yoshiki Hayashi