aboutsummaryrefslogtreecommitdiffstats
path: root/src/fileio.c
diff options
context:
space:
mode:
authorKarl Heuer1994-10-04 15:52:06 +0000
committerKarl Heuer1994-10-04 15:52:06 +0000
commit2acfd7ae4938d238bc534fbc76211acf37b3d963 (patch)
tree7c5c542ce7cfc9a0b3e9f80aa4e276e8d9b00b60 /src/fileio.c
parenta631e24c1fa38cba7e0e84fedfcfcc13ef0b282d (diff)
downloademacs-2acfd7ae4938d238bc534fbc76211acf37b3d963.tar.gz
emacs-2acfd7ae4938d238bc534fbc76211acf37b3d963.zip
(Finsert_file_contents, Fwrite_region, Fdo_auto_save, Fset_buffer_auto_saved):
Don't use XFASTINT as an lvalue.
Diffstat (limited to 'src/fileio.c')
-rw-r--r--src/fileio.c24
1 files changed, 12 insertions, 12 deletions
diff --git a/src/fileio.c b/src/fileio.c
index 73bb4a6e897..d72aabcb423 100644
--- a/src/fileio.c
+++ b/src/fileio.c
@@ -2685,7 +2685,7 @@ and (2) it puts less data in the undo list.")
2685 if (!NILP (beg)) 2685 if (!NILP (beg))
2686 CHECK_NUMBER (beg, 0); 2686 CHECK_NUMBER (beg, 0);
2687 else 2687 else
2688 XFASTINT (beg) = 0; 2688 XSETFASTINT (beg, 0);
2689 2689
2690 if (!NILP (end)) 2690 if (!NILP (end))
2691 CHECK_NUMBER (end, 0); 2691 CHECK_NUMBER (end, 0);
@@ -2706,8 +2706,8 @@ and (2) it puts less data in the undo list.")
2706 if (!NILP (replace)) 2706 if (!NILP (replace))
2707 { 2707 {
2708 replace = Qnil; 2708 replace = Qnil;
2709 XFASTINT (beg) = 0; 2709 XSETFASTINT (beg, 0);
2710 XFASTINT (end) = st.st_size; 2710 XSETFASTINT (end, st.st_size);
2711 del_range_1 (BEGV, ZV, 0); 2711 del_range_1 (BEGV, ZV, 0);
2712 } 2712 }
2713#else /* MSDOS */ 2713#else /* MSDOS */
@@ -2801,8 +2801,8 @@ and (2) it puts less data in the undo list.")
2801 same_at_end += overlap; 2801 same_at_end += overlap;
2802 2802
2803 /* Arrange to read only the nonmatching middle part of the file. */ 2803 /* Arrange to read only the nonmatching middle part of the file. */
2804 XFASTINT (beg) = same_at_start - BEGV; 2804 XSETFASTINT (beg, same_at_start - BEGV);
2805 XFASTINT (end) = st.st_size - (ZV - same_at_end); 2805 XSETFASTINT (end, st.st_size - (ZV - same_at_end));
2806 2806
2807 del_range_1 (same_at_start, same_at_end, 0); 2807 del_range_1 (same_at_start, same_at_end, 0);
2808 /* Insert from the file at the proper position. */ 2808 /* Insert from the file at the proper position. */
@@ -2916,7 +2916,7 @@ and (2) it puts less data in the undo list.")
2916 2916
2917 current_buffer->save_modified = MODIFF; 2917 current_buffer->save_modified = MODIFF;
2918 current_buffer->auto_save_modified = MODIFF; 2918 current_buffer->auto_save_modified = MODIFF;
2919 XFASTINT (current_buffer->save_length) = Z - BEG; 2919 XSETFASTINT (current_buffer->save_length, Z - BEG);
2920#ifdef CLASH_DETECTION 2920#ifdef CLASH_DETECTION
2921 if (NILP (handler)) 2921 if (NILP (handler))
2922 { 2922 {
@@ -3052,7 +3052,7 @@ to the file, instead of any buffer contents, and END is ignored.")
3052 if (visiting) 3052 if (visiting)
3053 { 3053 {
3054 current_buffer->save_modified = MODIFF; 3054 current_buffer->save_modified = MODIFF;
3055 XFASTINT (current_buffer->save_length) = Z - BEG; 3055 XSETFASTINT (current_buffer->save_length, Z - BEG);
3056 current_buffer->filename = visit_file; 3056 current_buffer->filename = visit_file;
3057 } 3057 }
3058 UNGCPRO; 3058 UNGCPRO;
@@ -3062,8 +3062,8 @@ to the file, instead of any buffer contents, and END is ignored.")
3062 /* Special kludge to simplify auto-saving. */ 3062 /* Special kludge to simplify auto-saving. */
3063 if (NILP (start)) 3063 if (NILP (start))
3064 { 3064 {
3065 XFASTINT (start) = BEG; 3065 XSETFASTINT (start, BEG);
3066 XFASTINT (end) = Z; 3066 XSETFASTINT (end, Z);
3067 } 3067 }
3068 3068
3069 record_unwind_protect (build_annotations_unwind, Fcurrent_buffer ()); 3069 record_unwind_protect (build_annotations_unwind, Fcurrent_buffer ());
@@ -3299,7 +3299,7 @@ to the file, instead of any buffer contents, and END is ignored.")
3299 if (visiting) 3299 if (visiting)
3300 { 3300 {
3301 current_buffer->save_modified = MODIFF; 3301 current_buffer->save_modified = MODIFF;
3302 XFASTINT (current_buffer->save_length) = Z - BEG; 3302 XSETFASTINT (current_buffer->save_length, Z - BEG);
3303 current_buffer->filename = visit_file; 3303 current_buffer->filename = visit_file;
3304 update_mode_lines++; 3304 update_mode_lines++;
3305 } 3305 }
@@ -3708,7 +3708,7 @@ Non-nil second argument means save only current buffer.")
3708 internal_condition_case (auto_save_1, Qt, auto_save_error); 3708 internal_condition_case (auto_save_1, Qt, auto_save_error);
3709 auto_saved++; 3709 auto_saved++;
3710 b->auto_save_modified = BUF_MODIFF (b); 3710 b->auto_save_modified = BUF_MODIFF (b);
3711 XFASTINT (current_buffer->save_length) = Z - BEG; 3711 XSETFASTINT (current_buffer->save_length, Z - BEG);
3712 set_buffer_internal (old); 3712 set_buffer_internal (old);
3713 3713
3714 EMACS_GET_TIME (after_time); 3714 EMACS_GET_TIME (after_time);
@@ -3745,7 +3745,7 @@ No auto-save file will be written until the buffer changes again.")
3745 () 3745 ()
3746{ 3746{
3747 current_buffer->auto_save_modified = MODIFF; 3747 current_buffer->auto_save_modified = MODIFF;
3748 XFASTINT (current_buffer->save_length) = Z - BEG; 3748 XSETFASTINT (current_buffer->save_length, Z - BEG);
3749 current_buffer->auto_save_failure_time = -1; 3749 current_buffer->auto_save_failure_time = -1;
3750 return Qnil; 3750 return Qnil;
3751} 3751}