From 4a38de71d8c8e815b1897b0031d41edad790cc56 Mon Sep 17 00:00:00 2001 From: Kenichi Handa Date: Thu, 12 Jun 2003 23:23:48 +0000 Subject: [PATCH] (Fwrite_region): Save and restore restriction. --- src/fileio.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/fileio.c b/src/fileio.c index b308a4b3852..db5cab44756 100644 --- a/src/fileio.c +++ b/src/fileio.c @@ -4892,11 +4892,14 @@ This does code conversion according to the value of 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 ()); -- 2.39.5