]> git.eshelyaron.com Git - emacs.git/commitdiff
(message_dolog): Do set windows_or_buffers_changed,
authorRichard M. Stallman <rms@gnu.org>
Sun, 24 May 1998 07:30:16 +0000 (07:30 +0000)
committerRichard M. Stallman <rms@gnu.org>
Sun, 24 May 1998 07:30:16 +0000 (07:30 +0000)
if *Messages* is displayed in a window.

src/xdisp.c

index f670259f3b8a6dd093879bc09c030a0d216cf65c..2532c4447eb212a3b4fea9f458f6433a34938d3f 100644 (file)
@@ -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;
     }