aboutsummaryrefslogtreecommitdiffstats
path: root/src/syntax.c
diff options
context:
space:
mode:
authorRichard M. Stallman1998-10-08 10:47:51 +0000
committerRichard M. Stallman1998-10-08 10:47:51 +0000
commitc3907a7e36229f6f87c42bbea2cea5ec6146e5e3 (patch)
treed9a2a148ed0392e1d7db5283354faff85db70768 /src/syntax.c
parentcebe85e9dfce6769aa163c85180cb7401f2fadb5 (diff)
downloademacs-c3907a7e36229f6f87c42bbea2cea5ec6146e5e3.tar.gz
emacs-c3907a7e36229f6f87c42bbea2cea5ec6146e5e3.zip
(scan_lists): Bring FROM back into range BEGV...ZV.
Diffstat (limited to 'src/syntax.c')
-rw-r--r--src/syntax.c7
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)
1827 int temp_pos; 1827 int temp_pos;
1828 int last_good = from; 1828 int last_good = from;
1829 int found; 1829 int found;
1830 int from_byte = CHAR_TO_BYTE (from); 1830 int from_byte;
1831 int out_bytepos, out_charpos; 1831 int out_bytepos, out_charpos;
1832 int temp; 1832 int temp;
1833 1833
1834 if (depth > 0) min_depth = 0; 1834 if (depth > 0) min_depth = 0;
1835 1835
1836 if (from > ZV) from = ZV;
1837 if (from < BEGV) from = BEGV;
1838
1839 from_byte = CHAR_TO_BYTE (from);
1840
1836 immediate_quit = 1; 1841 immediate_quit = 1;
1837 QUIT; 1842 QUIT;
1838 1843