diff options
| author | Jim Blandy | 1994-10-11 19:44:27 +0000 |
|---|---|---|
| committer | Jim Blandy | 1994-10-11 19:44:27 +0000 |
| commit | cbe0db0d8959464c69861fccfa6f23a69a30e740 (patch) | |
| tree | ed76be6d89e3da63477f3cdd3051e032cfd0c73b /src | |
| parent | ae474ea9cf740de466c561bc55210b21c2face89 (diff) | |
| download | emacs-cbe0db0d8959464c69861fccfa6f23a69a30e740.tar.gz emacs-cbe0db0d8959464c69861fccfa6f23a69a30e740.zip | |
(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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/search.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/search.c b/src/search.c index bb871395b74..c621e886d17 100644 --- a/src/search.c +++ b/src/search.c | |||
| @@ -364,7 +364,7 @@ scan_buffer (target, start, end, count, shortage, allow_quit) | |||
| 364 | while (region_cache_forward | 364 | while (region_cache_forward |
| 365 | (current_buffer, newline_cache, start, &next_change)) | 365 | (current_buffer, newline_cache, start, &next_change)) |
| 366 | start = next_change; | 366 | start = next_change; |
| 367 | immediate_quit = 1; | 367 | immediate_quit = allow_quit; |
| 368 | 368 | ||
| 369 | /* start should never be after end. */ | 369 | /* start should never be after end. */ |
| 370 | if (start >= end) | 370 | if (start >= end) |
| @@ -431,7 +431,7 @@ scan_buffer (target, start, end, count, shortage, allow_quit) | |||
| 431 | while (region_cache_backward | 431 | while (region_cache_backward |
| 432 | (current_buffer, newline_cache, start, &next_change)) | 432 | (current_buffer, newline_cache, start, &next_change)) |
| 433 | start = next_change; | 433 | start = next_change; |
| 434 | immediate_quit = 1; | 434 | immediate_quit = allow_quit; |
| 435 | 435 | ||
| 436 | /* Start should never be at or before end. */ | 436 | /* Start should never be at or before end. */ |
| 437 | if (start <= end) | 437 | if (start <= end) |
| @@ -507,6 +507,7 @@ find_next_newline (from, cnt) | |||
| 507 | find_next_newline (...)-1, because you might hit TO. */ | 507 | find_next_newline (...)-1, because you might hit TO. */ |
| 508 | int | 508 | int |
| 509 | find_before_next_newline (from, to, cnt) | 509 | find_before_next_newline (from, to, cnt) |
| 510 | int from, to, cnt; | ||
| 510 | { | 511 | { |
| 511 | int shortage; | 512 | int shortage; |
| 512 | int pos = scan_buffer ('\n', from, to, cnt, &shortage, 1); | 513 | int pos = scan_buffer ('\n', from, to, cnt, &shortage, 1); |