Mercurial > emacs
diff src/lread.c @ 93110:6d11337f1ad8
* fileio.c (Finsert_file_contents):
* lread.c (Feval_buffer): Use BUF_TEMP_SET_PT.
* buffer.h (BUF_SET_PT): Remove. set_point_both doesn't work right
when buffer != current_buffer anyway.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Thu, 20 Mar 2008 18:13:12 +0000 |
parents | f45795db28f6 |
children | c522dff11548 |
line wrap: on
line diff
--- a/src/lread.c Thu Mar 20 17:21:16 2008 +0000 +++ b/src/lread.c Thu Mar 20 18:13:12 2008 +0000 @@ -1850,7 +1850,7 @@ specbind (Qeval_buffer_list, Fcons (buf, Veval_buffer_list)); specbind (Qstandard_output, tem); record_unwind_protect (save_excursion_restore, save_excursion_save ()); - BUF_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf))); + BUF_TEMP_SET_PT (XBUFFER (buf), BUF_BEGV (XBUFFER (buf))); readevalloop (buf, 0, filename, Feval, !NILP (printflag), unibyte, Qnil, Qnil, Qnil); unbind_to (count, Qnil);