From ea064aa0d0cc3346ea17c0e4c51f9e8a3f0fedc2 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 4 Oct 1995 17:24:33 +0000 Subject: [PATCH] (Fmake_indirect_buffer): Was taking marker positions from current buffer, which is irrelevant. --- src/buffer.c | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/src/buffer.c b/src/buffer.c index f4a1cdc5aac..d3451ccd81e 100644 --- a/src/buffer.c +++ b/src/buffer.c @@ -420,9 +420,13 @@ NAME should be a string which is not the name of an existing buffer.") } /* 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; -- 2.39.2