From: Gerd Moellmann Date: Sat, 25 Dec 1999 12:55:46 +0000 (+0000) Subject: (looking_at_1): Reset immediate_quit before modifying X-Git-Tag: emacs-pretest-21.0.90~5638 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=de182d70416e3bfa6407b8489a3641afbbd288de;p=emacs.git (looking_at_1): Reset immediate_quit before modifying global data. --- diff --git a/src/search.c b/src/search.c index ccfc66003a2..5bcbaa615b3 100644 --- a/src/search.c +++ b/src/search.c @@ -308,6 +308,8 @@ looking_at_1 (string, posix) i = re_match_2 (bufp, (char *) p1, s1, (char *) p2, s2, PT_BYTE - BEGV_BYTE, &search_regs, ZV_BYTE - BEGV_BYTE); + immediate_quit = 0; + if (i == -2) matcher_overflow (); @@ -322,7 +324,6 @@ looking_at_1 (string, posix) = BYTE_TO_CHAR (search_regs.end[i] + BEGV_BYTE); } XSETBUFFER (last_thing_searched, current_buffer); - immediate_quit = 0; return val; }