emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 94e1185369 06/14: Support callers which sometimes run unrelated t


From: Eli Zaretskii
Subject: master 94e1185369 06/14: Support callers which sometimes run unrelated to display code
Date: Fri, 24 Jun 2022 03:54:18 -0400 (EDT)

branch: master
commit 94e118536986207ae17535c3d130b4172e408b7c
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>

    Support callers which sometimes run unrelated to display code
    
    * src/xdisp.c (update_redisplay_ticks): Don't abort callers
    with w == NULL if we are called outside of display engine code,
    and don't update the tick count in that case.
---
 src/xdisp.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/xdisp.c b/src/xdisp.c
index d14955af41..1ba9132e8c 100644
--- a/src/xdisp.c
+++ b/src/xdisp.c
@@ -17199,6 +17199,11 @@ update_redisplay_ticks (int ticks, struct window *w)
       cwindow = w;
       window_ticks = 0;
     }
+  /* Some callers can be run in contexts unrelated to redisplay, so
+     don't abort them and don't update the tick count in those cases.  */
+  if (!w && !redisplaying_p)
+    return;
+
   if (ticks > 0)
     window_ticks += ticks;
   if (max_redisplay_ticks > 0 && window_ticks > max_redisplay_ticks)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]