]> git.eshelyaron.com Git - emacs.git/commitdiff
(scan_buffer): After temporarily turning immediate_quit off, turn it
authorJim Blandy <jimb@redhat.com>
Tue, 11 Oct 1994 19:44:27 +0000 (19:44 +0000)
committerJim Blandy <jimb@redhat.com>
Tue, 11 Oct 1994 19:44:27 +0000 (19:44 +0000)
back on by setting it to allow_quit, never 1.

(find_before_next_newline): Declare the arguments' types explicitly;
don't let them default to int.

src/search.c

index bb871395b74a41088146d96fd61bbaf76a3f8c25..c621e886d17538a9c4128bf7fa94aeae12dbc695 100644 (file)
@@ -364,7 +364,7 @@ scan_buffer (target, start, end, count, shortage, allow_quit)
             while (region_cache_forward
                    (current_buffer, newline_cache, start, &next_change))
               start = next_change;
-            immediate_quit = 1;
+            immediate_quit = allow_quit;
 
             /* start should never be after end.  */
             if (start >= end)
@@ -431,7 +431,7 @@ scan_buffer (target, start, end, count, shortage, allow_quit)
             while (region_cache_backward
                    (current_buffer, newline_cache, start, &next_change))
               start = next_change;
-            immediate_quit = 1;
+            immediate_quit = allow_quit;
 
             /* Start should never be at or before end.  */
             if (start <= end)
@@ -507,6 +507,7 @@ find_next_newline (from, cnt)
    find_next_newline (...)-1, because you might hit TO.  */
 int
 find_before_next_newline (from, to, cnt)
+     int from, to, cnt;
 {
   int shortage;
   int pos = scan_buffer ('\n', from, to, cnt, &shortage, 1);