]> git.eshelyaron.com Git - emacs.git/commitdiff
(looking_at_1): Reset immediate_quit before modifying
authorGerd Moellmann <gerd@gnu.org>
Sat, 25 Dec 1999 12:55:46 +0000 (12:55 +0000)
committerGerd Moellmann <gerd@gnu.org>
Sat, 25 Dec 1999 12:55:46 +0000 (12:55 +0000)
global data.

src/search.c

index ccfc66003a2a386228d12be54be3cd3a5e50b1a1..5bcbaa615b30d399b88c16041f262c8d0d56ccd7 100644 (file)
@@ -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;
 }