From 1e158d254d630624716a81dfa66707509de12cb7 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Mon, 2 Jan 1995 09:16:42 +0000 Subject: [PATCH] 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. --- src/editfns.c | 8 ++++---- 1 file 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.") if (! NILP (noundo)) { - if (MODIFF - 1 == current_buffer->save_modified) - current_buffer->save_modified++; + if (MODIFF - 1 == SAVE_MODIFF) + SAVE_MODIFF++; if (MODIFF - 1 == current_buffer->auto_save_modified) current_buffer->auto_save_modified++; } @@ -1862,7 +1862,7 @@ transpose_markers (start1, end1, start2, end2) amt1 = (end2 - start2) + (start2 - end1); amt2 = (end1 - start1) + (start2 - end1); - for (marker = current_buffer->markers; !NILP (marker); + for (marker = BUF_MARKERS (current_buffer); !NILP (marker); marker = XMARKER (marker)->chain) { mpos = Fmarker_position (marker); @@ -1898,7 +1898,7 @@ Transposing beyond buffer boundaries is an error.") #ifdef USE_TEXT_PROPERTIES INTERVAL cur_intv, tmp_interval1, tmp_interval_mid, tmp_interval2; - cur_intv = current_buffer->intervals; + cur_intv = BUF_INTERVALS (current_buffer); #endif /* USE_TEXT_PROPERTIES */ validate_region (&startr1, &endr1); -- 2.39.5