# HG changeset patch # User Jim Blandy # Date 781904667 0 # Node ID 76f75b9091f18ae2af5d0beb5013765a9b823ea0 # Parent bdad001a9b9156575b3b8121d9254160fc122358 (scan_buffer): After temporarily turning immediate_quit off, turn it 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. diff -r bdad001a9b91 -r 76f75b9091f1 src/search.c --- a/src/search.c Tue Oct 11 19:39:03 1994 +0000 +++ b/src/search.c Tue Oct 11 19:44:27 1994 +0000 @@ -364,7 +364,7 @@ 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 @@ 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 (...)-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);