From: Richard M. Stallman Date: Sat, 30 Jan 1999 23:45:54 +0000 (+0000) Subject: (Fset_window_point): If WINDOW is selected but the X-Git-Tag: emacs-20.4~719 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e90c4fe62a6d7e68c5bd5b2d50cb37d7f6f1f3f7;p=emacs.git (Fset_window_point): If WINDOW is selected but the current buffer is not its buffer, don't use Fgoto_char. --- diff --git a/src/window.c b/src/window.c index 1198b05a84a..e064aa440f0 100644 --- a/src/window.c +++ b/src/window.c @@ -620,7 +620,8 @@ DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, register struct window *w = decode_window (window); CHECK_NUMBER_COERCE_MARKER (pos, 1); - if (w == XWINDOW (selected_window)) + if (w == XWINDOW (selected_window) + && XBUFFER (w->buffer) == current_buffer) Fgoto_char (pos); else set_marker_restricted (w->pointm, pos, w->buffer);