Commit e90c4fe6 authored by Richard M. Stallman's avatar Richard M. Stallman

(Fset_window_point): If WINDOW is selected but the

current buffer is not its buffer, don't use Fgoto_char.
parent aa7b87b0
......@@ -620,7 +620,8 @@ DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0,
register struct window *w = decode_window (window);
if (w == XWINDOW (selected_window))
if (w == XWINDOW (selected_window)
&& XBUFFER (w->buffer) == current_buffer)
Fgoto_char (pos);
set_marker_restricted (w->pointm, pos, w->buffer);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment