1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2025-01-24 19:03:29 +00:00

(Fset_window_point): If WINDOW is selected but the

current buffer is not its buffer, don't use Fgoto_char.
This commit is contained in:
Richard M. Stallman 1999-01-30 23:45:54 +00:00
parent aa7b87b0b2
commit e90c4fe62a

View File

@ -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);