From: Gerd Moellmann Date: Tue, 12 Dec 2000 16:14:01 +0000 (+0000) Subject: (Fset_window_point): If displaying cursors in windows X-Git-Tag: emacs-pretest-21.0.95~588 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=799417bd9433225627580715a7b286856ac861e8;p=emacs.git (Fset_window_point): If displaying cursors in windows other than the selected window, make sure redisplay updates other windows to show the new value of point in the window. --- diff --git a/src/window.c b/src/window.c index 23dbcbdfa99..d7a81dad0e3 100644 --- a/src/window.c +++ b/src/window.c @@ -898,6 +898,12 @@ DEFUN ("set-window-point", Fset_window_point, Sset_window_point, 2, 2, 0, Fgoto_char (pos); else set_marker_restricted (w->pointm, pos, w->buffer); + + /* If displaying hollow box cursors in non-selected windows, we have + to make sure that redisplay updates the window to show the new + value of point. */ + if (cursor_in_non_selected_windows && !EQ (window, selected_window)) + ++windows_or_buffers_changed; return pos; }