diff options
Diffstat (limited to 'src/lread.c')
| -rw-r--r-- | src/lread.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lread.c b/src/lread.c index 6467043b1da..f0ad0c28e56 100644 --- a/src/lread.c +++ b/src/lread.c | |||
| @@ -1885,7 +1885,7 @@ readevalloop (Lisp_Object readcharfun, | |||
| 1885 | /* On the first cycle, we can easily test here | 1885 | /* On the first cycle, we can easily test here |
| 1886 | whether we are reading the whole buffer. */ | 1886 | whether we are reading the whole buffer. */ |
| 1887 | if (b && first_sexp) | 1887 | if (b && first_sexp) |
| 1888 | whole_buffer = (PT == BEG && ZV == Z); | 1888 | whole_buffer = (BUF_PT (b) == BUF_BEG (b) && BUF_ZV (b) == BUF_Z (b)); |
| 1889 | 1889 | ||
| 1890 | instream = stream; | 1890 | instream = stream; |
| 1891 | read_next: | 1891 | read_next: |
| @@ -2008,6 +2008,7 @@ This function preserves the position of point. */) | |||
| 2008 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); | 2008 | record_unwind_protect (save_excursion_restore, save_excursion_save ()); |
| 2009 | BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf))); | 2009 | BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf))); |
| 2010 | specbind (Qlexical_binding, lisp_file_lexically_bound_p (buf) ? Qt : Qnil); | 2010 | specbind (Qlexical_binding, lisp_file_lexically_bound_p (buf) ? Qt : Qnil); |
| 2011 | BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf))); | ||
| 2011 | readevalloop (buf, 0, filename, | 2012 | readevalloop (buf, 0, filename, |
| 2012 | !NILP (printflag), unibyte, Qnil, Qnil, Qnil); | 2013 | !NILP (printflag), unibyte, Qnil, Qnil, Qnil); |
| 2013 | unbind_to (count, Qnil); | 2014 | unbind_to (count, Qnil); |