diff options
| author | Richard M. Stallman | 1998-10-08 10:47:51 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1998-10-08 10:47:51 +0000 |
| commit | c3907a7e36229f6f87c42bbea2cea5ec6146e5e3 (patch) | |
| tree | d9a2a148ed0392e1d7db5283354faff85db70768 /src/syntax.c | |
| parent | cebe85e9dfce6769aa163c85180cb7401f2fadb5 (diff) | |
| download | emacs-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.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) | |||
| 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 | ||