# HG changeset patch # User Richard M. Stallman # Date 907843671 0 # Node ID 529689c4a32c106e8a7d56a7b1a4e38f01da34c5 # Parent 789be3d7ef2d23be6a0558e91c1bc92b833d0427 (scan_lists): Bring FROM back into range BEGV...ZV. diff -r 789be3d7ef2d -r 529689c4a32c src/syntax.c --- a/src/syntax.c Thu Oct 08 09:58:00 1998 +0000 +++ b/src/syntax.c Thu Oct 08 10:47:51 1998 +0000 @@ -1827,12 +1827,17 @@ int temp_pos; int last_good = from; int found; - int from_byte = CHAR_TO_BYTE (from); + int from_byte; int out_bytepos, out_charpos; int temp; if (depth > 0) min_depth = 0; + if (from > ZV) from = ZV; + if (from < BEGV) from = BEGV; + + from_byte = CHAR_TO_BYTE (from); + immediate_quit = 1; QUIT;