Revert a recent change that caused redisplay slowdown
authorEli Zaretskii <eliz@gnu.org>
Sun, 25 Aug 2024 18:43:59 +0000 (21:43 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sun, 25 Aug 2024 18:43:59 +0000 (21:43 +0300)
* src/xfaces.c (recompute_basic_faces): Revert the change which
caused recalculation of all the faces, as it made cursor motion
too slow.  Reported by Juri Linkov <juri@linkov.net> (bug#72692).

src/xfaces.c

index 34897817ffd447aac970495789ca8a0189a98a9c..684b6ccfac72db4fc5ac22fb1b7b77d8bd43eb12 100644 (file)
@@ -736,11 +736,6 @@ recompute_basic_faces (struct frame *f)
       clear_face_cache (false);
       if (!realize_basic_faces (f))
        emacs_abort ();
-      /* Force complete face recalculation next time we use the display
-         code, because realize_basic_faces could free the fontset used
-         by non-ASCII faces corresponding to ASCII faces of the basic
-         faces, and attempt to use that fontset might segfault.  */
-      f->face_change = true;
     }
 }