changeset 13114:c521a85eaafd

(Fmake_indirect_buffer): Was taking marker positions from current buffer, which is irrelevant.
author Richard M. Stallman <rms@gnu.org>
date Wed, 04 Oct 1995 17:24:33 +0000
parents ece0744c0bb0
children b4601a8c1e5c
files src/buffer.c
diffstat 1 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Wed Oct 04 16:07:50 1995 +0000
+++ b/src/buffer.c	Wed Oct 04 17:24:33 1995 +0000
@@ -420,9 +420,13 @@
     }
 
   /* Give the indirect buffer markers for its narrowing.  */
-  b->pt_marker = Fpoint_marker ();
-  b->begv_marker = Fpoint_min_marker ();
-  b->zv_marker = Fpoint_max_marker ();
+  b->pt_marker = Fmake_marker ();
+  Fset_marker (b->pt_marker, make_number (BUF_PT (b)), buf);
+  b->begv_marker = Fmake_marker ();
+  Fset_marker (b->begv_marker, make_number (BUF_BEGV (b)), buf);
+  b->zv_marker = Fmake_marker ();
+  Fset_marker (b->zv_marker, make_number (BUF_ZV (b)), buf);
+
   XMARKER (b->zv_marker)->insertion_type = 1;
 
   return buf;