From: Richard M. Stallman Date: Wed, 4 Oct 1995 17:24:33 +0000 (+0000) Subject: (Fmake_indirect_buffer): Was taking marker positions X-Git-Tag: emacs-19.34~2746 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ea064aa0d0cc3346ea17c0e4c51f9e8a3f0fedc2;p=emacs.git (Fmake_indirect_buffer): Was taking marker positions from current buffer, which is irrelevant. --- 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;