aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/cus-face.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/cus-face.el')
-rw-r--r--lisp/cus-face.el8
1 files changed, 2 insertions, 6 deletions
diff --git a/lisp/cus-face.el b/lisp/cus-face.el
index 1ff07c4c361..e3134e8f1ea 100644
--- a/lisp/cus-face.el
+++ b/lisp/cus-face.el
@@ -39,15 +39,11 @@
39 (when (fboundp 'facep) 39 (when (fboundp 'facep)
40 (unless (facep face) 40 (unless (facep face)
41 ;; If the user has already created the face, respect that. 41 ;; If the user has already created the face, respect that.
42 (let ((value (or (get face 'saved-face) spec)) 42 (let ((value (or (get face 'saved-face) spec)))
43 (frames (frame-list))
44 frame)
45 ;; Create global face. 43 ;; Create global face.
46 (make-empty-face face) 44 (make-empty-face face)
47 ;; Create frame-local faces 45 ;; Create frame-local faces
48 (while frames 46 (dolist (frame (frame-list))
49 (setq frame (car frames)
50 frames (cdr frames))
51 (face-spec-set face value frame))) 47 (face-spec-set face value frame)))
52 ;; When making a face after frames already exist 48 ;; When making a face after frames already exist
53 (if (memq window-system '(x w32)) 49 (if (memq window-system '(x w32))