aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRichard M. Stallman1995-01-02 09:16:42 +0000
committerRichard M. Stallman1995-01-02 09:16:42 +0000
commit1e158d254d630624716a81dfa66707509de12cb7 (patch)
tree55f4a1c9af923dac1b4eba401d8e762990701c0b /src
parent30e3190aac82c3a218fa2d435b37f04ab427e674 (diff)
downloademacs-1e158d254d630624716a81dfa66707509de12cb7.tar.gz
emacs-1e158d254d630624716a81dfa66707509de12cb7.zip
Use SAVE_MODIFF and BUF_SAVE_MODIFF
instead of direct access to the save_modiff field. (Ftranspose_regions): Use BUF_INTERVALS. (transpose_markers): Use BUF_MARKERS.
Diffstat (limited to 'src')
-rw-r--r--src/editfns.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/editfns.c b/src/editfns.c
index 5dad39d426e..2aa7ff42a2b 100644
--- a/src/editfns.c
+++ b/src/editfns.c
@@ -1290,8 +1290,8 @@ and don't mark the buffer as really changed.")
1290 1290
1291 if (! NILP (noundo)) 1291 if (! NILP (noundo))
1292 { 1292 {
1293 if (MODIFF - 1 == current_buffer->save_modified) 1293 if (MODIFF - 1 == SAVE_MODIFF)
1294 current_buffer->save_modified++; 1294 SAVE_MODIFF++;
1295 if (MODIFF - 1 == current_buffer->auto_save_modified) 1295 if (MODIFF - 1 == current_buffer->auto_save_modified)
1296 current_buffer->auto_save_modified++; 1296 current_buffer->auto_save_modified++;
1297 } 1297 }
@@ -1862,7 +1862,7 @@ transpose_markers (start1, end1, start2, end2)
1862 amt1 = (end2 - start2) + (start2 - end1); 1862 amt1 = (end2 - start2) + (start2 - end1);
1863 amt2 = (end1 - start1) + (start2 - end1); 1863 amt2 = (end1 - start1) + (start2 - end1);
1864 1864
1865 for (marker = current_buffer->markers; !NILP (marker); 1865 for (marker = BUF_MARKERS (current_buffer); !NILP (marker);
1866 marker = XMARKER (marker)->chain) 1866 marker = XMARKER (marker)->chain)
1867 { 1867 {
1868 mpos = Fmarker_position (marker); 1868 mpos = Fmarker_position (marker);
@@ -1898,7 +1898,7 @@ Transposing beyond buffer boundaries is an error.")
1898 1898
1899#ifdef USE_TEXT_PROPERTIES 1899#ifdef USE_TEXT_PROPERTIES
1900 INTERVAL cur_intv, tmp_interval1, tmp_interval_mid, tmp_interval2; 1900 INTERVAL cur_intv, tmp_interval1, tmp_interval_mid, tmp_interval2;
1901 cur_intv = current_buffer->intervals; 1901 cur_intv = BUF_INTERVALS (current_buffer);
1902#endif /* USE_TEXT_PROPERTIES */ 1902#endif /* USE_TEXT_PROPERTIES */
1903 1903
1904 validate_region (&startr1, &endr1); 1904 validate_region (&startr1, &endr1);