aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2024-08-31 08:14:03 -0400
committerEli Zaretskii2024-08-31 08:14:03 -0400
commita18c29a7ebe508ef0baa5572003b01ea2ca36de5 (patch)
tree1eafc8b1d37a37fb84aaaea93eadcee77965d830 /src
parenta9889b8eeceb4f1f7835be04f66d3c91c6f36621 (diff)
parenta0f740c88d88fdd64738518d030951cd336327c7 (diff)
downloademacs-a18c29a7ebe508ef0baa5572003b01ea2ca36de5.tar.gz
emacs-a18c29a7ebe508ef0baa5572003b01ea2ca36de5.zip
Merge from origin/emacs-30
a0f740c88d8 ; * lisp/progmodes/flymake.el: Fix "Maintainer" header a9433858131 ; * etc/AUTHORS: Update. 762b85be27b ; Revert "; * admin/authors.el (authors-valid-file-names)... e24d568b565 ; Revert "Revert "; * admin/authors.el (authors-ignored-f... 2d723a280b3 Revert "; * admin/authors.el (authors-ignored-files): Add... 2a5b129509f Revert "; * admin/authors.el (authors-ignored-files): Ign... 0db53f14a29 ; * admin/authors.el (authors-ignored-files): Ignore Unic... 6734b60c0c3 ; * admin/authors.el (authors-valid-file-names): Ignore U... d809d53afc0 ; * admin/authors.el (authors-ignored-files): Add removed... 766f69bab12 ; * etc/NEWS: Announce VC-dir "Tracking" header. (bug#68183) 37a097d8663 ; * admin/authors.el (authors-aliases): Fix regexps. 0fb50e26316 ; * admin/MAINTAINERS: Spencer Baugh maintains flymake.el. d05d8c336c8 xwidget: Fix xwidget-at misinterpreting non-xwidget text-... 13f69f254cf Fix rare segfaults due to freed fontsets 427fb319dab ; * lisp/simple.el (use-region-beginning, use-region-end)... # Conflicts: # admin/MAINTAINERS # etc/NEWS
Diffstat (limited to 'src')
-rw-r--r--src/xfaces.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/xfaces.c b/src/xfaces.c
index 684b6ccfac7..bbc3448e457 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -733,9 +733,18 @@ recompute_basic_faces (struct frame *f)
733{ 733{
734 if (FRAME_FACE_CACHE (f)) 734 if (FRAME_FACE_CACHE (f))
735 { 735 {
736 bool non_basic_faces_cached =
737 FRAME_FACE_CACHE (f)->used > BASIC_FACE_ID_SENTINEL;
736 clear_face_cache (false); 738 clear_face_cache (false);
737 if (!realize_basic_faces (f)) 739 if (!realize_basic_faces (f))
738 emacs_abort (); 740 emacs_abort ();
741 /* The call to realize_basic_faces above recomputed the basic
742 faces and freed their fontsets, but if there are non-ASCII
743 faces in the cache, they might now be invalid, and they
744 reference fontsets that are no longer in Vfontset_table. We
745 therefore must force complete regeneration of all frame faces. */
746 if (non_basic_faces_cached)
747 f->face_change = true;
739 } 748 }
740} 749}
741 750