Mercurial > emacs
changeset 24230:ee835eec7607
(Fset_window_point): If WINDOW is selected but the
current buffer is not its buffer, don't use Fgoto_char.
author | Richard M. Stallman <rms@gnu.org> |
---|---|
date | Sat, 30 Jan 1999 23:45:54 +0000 |
parents | fc89585ce76f |
children | 1100d4e5201b |
files | src/window.c |
diffstat | 1 files changed, 2 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- 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);