Mercurial > emacs
diff src/fileio.c @ 51557:3df5bc22c5e4
(Fwrite_region): Save and restore restriction.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 12 Jun 2003 23:23:48 +0000 |
parents | 4830e98be217 |
children | b4847cd4179f |
line wrap: on
line diff
--- a/src/fileio.c Thu Jun 12 23:23:33 2003 +0000 +++ b/src/fileio.c Thu Jun 12 23:23:48 2003 +0000 @@ -4892,11 +4892,14 @@ return val; } + record_unwind_protect (save_restriction_restore, save_restriction_save ()); + /* Special kludge to simplify auto-saving. */ if (NILP (start)) { XSETFASTINT (start, BEG); XSETFASTINT (end, Z); + Fwiden (); } record_unwind_protect (build_annotations_unwind, Fcurrent_buffer ());