changeset 22209:571020b7fc5e

(message_dolog): Do set windows_or_buffers_changed, if *Messages* is displayed in a window.
author Richard M. Stallman <rms@gnu.org>
date Sun, 24 May 1998 07:30:16 +0000
parents 5b05d45bfbbf
children f741b3e11e37
files src/xdisp.c
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/xdisp.c	Sun May 24 01:10:12 1998 +0000
+++ b/src/xdisp.c	Sun May 24 07:30:16 1998 +0000
@@ -296,7 +296,7 @@
       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 @@
       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;
     }