From: Richard M. Stallman Date: Sat, 22 Mar 1997 04:18:04 +0000 (+0000) Subject: (Fset_window_buffer): Increment display_count if it is an integer. X-Git-Tag: emacs-20.1~2719 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=850ebd4faba021abb2c3090b17267faef85b7a26;p=emacs.git (Fset_window_buffer): Increment display_count if it is an integer. --- diff --git a/src/window.c b/src/window.c index 1c90476e35d..2112a1d357a 100644 --- a/src/window.c +++ b/src/window.c @@ -1874,6 +1874,9 @@ BUFFER can be a buffer or buffer name.") if (EQ (window, selected_window)) XBUFFER (w->buffer)->last_selected_window = window; + if (INTEGERP (XBUFFER (buffer)->display_count)) + XSETINT (XBUFFER (buffer)->display_count, + XBUFFER (buffer)->display_count + 1); XSETFASTINT (w->window_end_pos, 0); w->window_end_valid = Qnil;