diff options
| author | Kenichi Handa | 2003-06-12 23:23:48 +0000 |
|---|---|---|
| committer | Kenichi Handa | 2003-06-12 23:23:48 +0000 |
| commit | 4a38de71d8c8e815b1897b0031d41edad790cc56 (patch) | |
| tree | 7edb7927aad30d0f6167d9c79964929dde91d54e /src | |
| parent | ba92ce489ae2a521e2e3b6531a02250ae76dfde7 (diff) | |
| download | emacs-4a38de71d8c8e815b1897b0031d41edad790cc56.tar.gz emacs-4a38de71d8c8e815b1897b0031d41edad790cc56.zip | |
(Fwrite_region): Save and restore restriction.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 3 |
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 ()); |