From: Richard M. Stallman Date: Sun, 24 May 1998 07:30:16 +0000 (+0000) Subject: (message_dolog): Do set windows_or_buffers_changed, X-Git-Tag: emacs-20.3~868 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=e18a235e39b535f4c0d1c2d9cb5ee92aad409616;p=emacs.git (message_dolog): Do set windows_or_buffers_changed, if *Messages* is displayed in a window. --- diff --git a/src/xdisp.c b/src/xdisp.c index f670259f3b8..2532c4447eb 100644 --- a/src/xdisp.c +++ b/src/xdisp.c @@ -296,7 +296,7 @@ message_dolog (m, len, nlflag, multibyte) int old_windows_or_buffers_changed = windows_or_buffers_changed; int point_at_end = 0; int zv_at_end = 0; - Lisp_Object old_deactivate_mark; + Lisp_Object old_deactivate_mark, tem; old_deactivate_mark = Vdeactivate_mark; oldbuf = current_buffer; @@ -419,8 +419,10 @@ message_dolog (m, len, nlflag, multibyte) free_marker (oldbegv); free_marker (oldzv); + tem = Fget_buffer_window (Fcurrent_buffer (), Qt); set_buffer_internal (oldbuf); - windows_or_buffers_changed = old_windows_or_buffers_changed; + if (NILP (tem)) + windows_or_buffers_changed = old_windows_or_buffers_changed; message_log_need_newline = !nlflag; Vdeactivate_mark = old_deactivate_mark; }