# HG changeset patch # User Richard M. Stallman # Date 917739954 0 # Node ID ee835eec76077b8d1fe7fd8f7afc709effe94cb5 # Parent fc89585ce76f193e7ef8a292d41a29a991776021 (Fset_window_point): If WINDOW is selected but the current buffer is not its buffer, don't use Fgoto_char. diff -r fc89585ce76f -r ee835eec7607 src/window.c --- a/src/window.c Sat Jan 30 18:48:57 1999 +0000 +++ b/src/window.c Sat Jan 30 23:45:54 1999 +0000 @@ -620,7 +620,8 @@ 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);