(Fwiden): Set clip_changed in current buffer.
authorRichard M. Stallman <rms@gnu.org>
Fri, 7 Jul 1995 13:32:21 +0000 (13:32 +0000)
committerRichard M. Stallman <rms@gnu.org>
Fri, 7 Jul 1995 13:32:21 +0000 (13:32 +0000)
(Fnarrow_to_region, save_restriction_restore): Likewise.

src/editfns.c

index 13a851f..0519bc8 100644 (file)
@@ -1509,7 +1509,7 @@ This allows the buffer's full text to be seen and edited.")
 {
   BEGV = BEG;
   SET_BUF_ZV (current_buffer, Z);
-  clip_changed = 1;
+  current_buffer->clip_changed = 1;
   /* Changing the buffer bounds invalidates any recorded current column.  */
   invalidate_current_column ();
   return Qnil;
@@ -1545,7 +1545,7 @@ or markers) bounding the text that should remain visible.")
     SET_PT (XFASTINT (b));
   if (point > XFASTINT (e))
     SET_PT (XFASTINT (e));
-  clip_changed = 1;
+  current_buffer->clip_changed = 1;
   /* Changing the buffer bounds invalidates any recorded current column.  */
   invalidate_current_column ();
   return Qnil;
@@ -1587,7 +1587,7 @@ save_restriction_restore (data)
     }
   BUF_BEGV (buf) = BUF_BEG (buf) + newhead;
   SET_BUF_ZV (buf, BUF_Z (buf) - newtail);
-  clip_changed = 1;
+  current_buffer->clip_changed = 1;
 
   /* If point is outside the new visible range, move it inside. */
   SET_BUF_PT (buf,