]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/xdisp.c (redisplay_internal): Use assq_no_quit.
authorGerd Möllmann <gerd@gnu.org>
Mon, 18 Nov 2024 07:21:22 +0000 (08:21 +0100)
committerEshel Yaron <me@eshelyaron.com>
Mon, 23 Dec 2024 14:54:43 +0000 (15:54 +0100)
(cherry picked from commit 7608563d3b274d805111827a39cc73aaa147eaa1)

src/xdisp.c

index 00db18577742cbbdaa79dace1a89f422870ca359..474546da10697dc12292c97a6301b10365b926ae 100644 (file)
@@ -17469,16 +17469,9 @@ redisplay_internal (void)
                continue;
 
              /* Remember tty root frames which we've seen.  */
-             if (!FRAME_PARENT_FRAME (f))
-               {
-                 Lisp_Object found;
-                 for (found = tty_root_frames;
-                      CONSP (found) && !EQ (XCAR (found), frame);
-                      found = XCDR (found))
-                   ;
-                 if (!CONSP (found))
-                   tty_root_frames = Fcons (frame, tty_root_frames);
-               }
+             if (!FRAME_PARENT_FRAME (f)
+                 && NILP (assq_no_quit (frame, tty_root_frames)))
+               tty_root_frames = Fcons (frame, tty_root_frames);
            }
 
        retry_frame: