From e18a235e39b535f4c0d1c2d9cb5ee92aad409616 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Sun, 24 May 1998 07:30:16 +0000 Subject: [PATCH] (message_dolog): Do set windows_or_buffers_changed, if *Messages* is displayed in a window. --- src/xdisp.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) 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; } -- 2.39.2