changeset 51557:3df5bc22c5e4

(Fwrite_region): Save and restore restriction.
author Kenichi Handa <handa@m17n.org>
date Thu, 12 Jun 2003 23:23:48 +0000
parents a1c8931835d3
children 5a85c7c1d3ab
files src/fileio.c
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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 ());