# HG changeset patch # User Kenichi Handa # Date 1055460228 0 # Node ID 3df5bc22c5e4232b06c1368f5595beb806b6e505 # Parent a1c8931835d3216de9dddef8a979121ac3300ea3 (Fwrite_region): Save and restore restriction. diff -r a1c8931835d3 -r 3df5bc22c5e4 src/fileio.c --- 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 ());