Mercurial > emacs
comparison src/fileio.c @ 51557:3df5bc22c5e4
(Fwrite_region): Save and restore restriction.
author | Kenichi Handa <handa@m17n.org> |
---|---|
date | Thu, 12 Jun 2003 23:23:48 +0000 |
parents | 4830e98be217 |
children | b4847cd4179f |
comparison
equal
deleted
inserted
replaced
51556:a1c8931835d3 | 51557:3df5bc22c5e4 |
---|---|
4890 } | 4890 } |
4891 UNGCPRO; | 4891 UNGCPRO; |
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 ()); |
4903 count1 = SPECPDL_INDEX (); | 4906 count1 = SPECPDL_INDEX (); |
4904 | 4907 |