summaryrefslogtreecommitdiff
path: root/src/editfns.c
diff options
context:
space:
mode:
authorRichard M. Stallman <rms@gnu.org>1995-01-02 09:16:42 +0000
committerRichard M. Stallman <rms@gnu.org>1995-01-02 09:16:42 +0000
commit58ff140ce862231bac8990c1270f20c75bb516bb (patch)
treecf17b8f91edb5e058d92315787af581ff232ca83 /src/editfns.c
parentda5a0d7462bb8b164558e3b10dacd32e822de1ab (diff)
downloademacs-58ff140ce862231bac8990c1270f20c75bb516bb.tar.gz
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/editfns.c')
-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.")
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);