diff options
author | Richard M. Stallman <rms@gnu.org> | 1998-10-08 10:47:51 +0000 |
---|---|---|
committer | Richard M. Stallman <rms@gnu.org> | 1998-10-08 10:47:51 +0000 |
commit | 78e140e108c004bdc6b69067cae1826c62f4a384 (patch) | |
tree | 3ca49f7068fe91a2f7d96f362d730b46b7b3dd5e /src/syntax.c | |
parent | 764b956750a8f131c4294ae4ef6721d4c871425f (diff) | |
download | emacs-78e140e108c004bdc6b69067cae1826c62f4a384.tar.gz |
(scan_lists): Bring FROM back into range BEGV...ZV.
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/syntax.c b/src/syntax.c index 4edac655b7f..a2049e024bf 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -1827,12 +1827,17 @@ scan_lists (from, count, depth, sexpflag) 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; |