emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/raeburn-startup 29b2555 5/5: Create frame's face c


From: Ken Raeburn
Subject: [Emacs-diffs] scratch/raeburn-startup 29b2555 5/5: Create frame's face cache.
Date: Sun, 5 Feb 2017 14:10:06 +0000 (UTC)

branch: scratch/raeburn-startup
commit 29b25551adea04a5cbf2401d02b42886653613da
Author: Ken Raeburn <address@hidden>
Commit: Ken Raeburn <address@hidden>

    Create frame's face cache.
    
    * src/xfaces.c (Finternal_set_lisp_face_attribute): Ensure the face
    cache exists on a frame before calling Fmodify_frame_parameters.
---
 src/xfaces.c |    7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/src/xfaces.c b/src/xfaces.c
index accb98b..64df004 100644
--- a/src/xfaces.c
+++ b/src/xfaces.c
@@ -3212,6 +3212,13 @@ FRAME 0 means change the face on all frames, and change 
the default
              cons = XCAR (Vparam_value_alist);
              XSETCAR (cons, param);
              XSETCDR (cons, value);
+
+             /* Fmodify_frame_parameters may update faces and use the
+                cache.  */
+             struct frame *f = XFRAME (frame);
+             if (FRAME_FACE_CACHE (f) == NULL)
+               FRAME_FACE_CACHE (f) = make_face_cache (f);
+
              Fmodify_frame_parameters (frame, Vparam_value_alist);
            }
        }



reply via email to

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