aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKenichi Handa2003-06-12 23:23:48 +0000
committerKenichi Handa2003-06-12 23:23:48 +0000
commit4a38de71d8c8e815b1897b0031d41edad790cc56 (patch)
tree7edb7927aad30d0f6167d9c79964929dde91d54e /src
parentba92ce489ae2a521e2e3b6531a02250ae76dfde7 (diff)
downloademacs-4a38de71d8c8e815b1897b0031d41edad790cc56.tar.gz
emacs-4a38de71d8c8e815b1897b0031d41edad790cc56.zip
(Fwrite_region): Save and restore restriction.
Diffstat (limited to 'src')
-rw-r--r--src/fileio.c3
1 files changed, 3 insertions, 0 deletions
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
4892 return val; 4892 return val;
4893 } 4893 }
4894 4894
4895 record_unwind_protect (save_restriction_restore, save_restriction_save ());
4896
4895 /* Special kludge to simplify auto-saving. */ 4897 /* Special kludge to simplify auto-saving. */
4896 if (NILP (start)) 4898 if (NILP (start))
4897 { 4899 {
4898 XSETFASTINT (start, BEG); 4900 XSETFASTINT (start, BEG);
4899 XSETFASTINT (end, Z); 4901 XSETFASTINT (end, Z);
4902 Fwiden ();
4900 } 4903 }
4901 4904
4902 record_unwind_protect (build_annotations_unwind, Fcurrent_buffer ()); 4905 record_unwind_protect (build_annotations_unwind, Fcurrent_buffer ());