# HG changeset patch # User Richard M. Stallman # Date 1087163809 0 # Node ID 16a8650c3814cba27da1922926932b5e13ae8448 # Parent bd7bc33213fdfa7e5d301ab06e38a72f3b084d95 (custom-declare-face): Simplify code. diff -r bd7bc33213fd -r 16a8650c3814 lisp/cus-face.el --- a/lisp/cus-face.el Sun Jun 13 21:55:49 2004 +0000 +++ b/lisp/cus-face.el Sun Jun 13 21:56:49 2004 +0000 @@ -39,15 +39,11 @@ (when (fboundp 'facep) (unless (facep face) ;; If the user has already created the face, respect that. - (let ((value (or (get face 'saved-face) spec)) - (frames (frame-list)) - frame) + (let ((value (or (get face 'saved-face) spec))) ;; Create global face. (make-empty-face face) ;; Create frame-local faces - (while frames - (setq frame (car frames) - frames (cdr frames)) + (dolist (frame (frame-list)) (face-spec-set face value frame))) ;; When making a face after frames already exist (if (memq window-system '(x w32))