From ffcd945ec5f57bcea1c7ebc6329981577baaae80 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Wed, 13 Mar 2013 19:41:54 +0400 Subject: [PATCH] * window.c (Fscroll_other_window): Use SET_PT_BOTH because both character and byte positions can be obtained from marker. --- src/ChangeLog | 2 ++ src/window.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index e23f0167339..6c575946b25 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,8 @@ * xdisp.c (init_iterator): Simplify because both character and byte positions are either specified or -1. Add eassert. Adjust comment. + * window.c (Fscroll_other_window): Use SET_PT_BOTH because both + character and byte positions can be obtained from marker. 2013-03-13 Paul Eggert diff --git a/src/window.c b/src/window.c index 77696131512..940e0f7565a 100644 --- a/src/window.c +++ b/src/window.c @@ -5021,7 +5021,7 @@ specifies the window to scroll. This takes precedence over ++windows_or_buffers_changed; Fset_buffer (w->buffer); - SET_PT (marker_position (w->pointm)); + SET_PT_BOTH (marker_position (w->pointm), marker_byte_position (w->pointm)); if (NILP (arg)) window_scroll (window, 1, 1, 1); -- 2.39.2