emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] scratch/raeburn-startup ee0638c 18/43: Create frame's face


From: Ken Raeburn
Subject: [Emacs-diffs] scratch/raeburn-startup ee0638c 18/43: Create frame's face cache.
Date: Mon, 31 Jul 2017 02:11:01 -0400 (EDT)

branch: scratch/raeburn-startup
commit ee0638c68cc38489381604cb115c7c7639eb258d
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 86bb9b0..b9ced74 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]