aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKarl Heuer1994-03-02 06:45:38 +0000
committerKarl Heuer1994-03-02 06:45:38 +0000
commitda41135a678cea39bd3ef9797b9f989ed5c0f650 (patch)
tree69f4d75b7891cf7e263a6d95a063515c51e83a37
parentd2ebfa8cfcd82cc5fe38793313a20a3bac991036 (diff)
downloademacs-da41135a678cea39bd3ef9797b9f989ed5c0f650.tar.gz
emacs-da41135a678cea39bd3ef9797b9f989ed5c0f650.zip
(copy-face): Don't change old-face and new-face before the frame loop.
-rw-r--r--lisp/faces.el8
1 files changed, 4 insertions, 4 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 0bc1ed0a777..891a37c24aa 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -308,16 +308,16 @@ If the optional fourth argument NEW-FRAME is given,
308copy the information from face OLD-FACE on frame FRAME 308copy the information from face OLD-FACE on frame FRAME
309to NEW-FACE on frame NEW-FRAME." 309to NEW-FACE on frame NEW-FRAME."
310 (or new-frame (setq new-frame frame)) 310 (or new-frame (setq new-frame frame))
311 (setq old-face (internal-get-face old-face frame)) 311 (let ((inhibit-quit t))
312 (let* ((inhibit-quit t)
313 (new-face (or (internal-find-face new-face new-frame)
314 (make-face new-face))))
315 (if (null frame) 312 (if (null frame)
316 (let ((frames (frame-list))) 313 (let ((frames (frame-list)))
317 (while frames 314 (while frames
318 (copy-face old-face new-face (car frames)) 315 (copy-face old-face new-face (car frames))
319 (setq frames (cdr frames))) 316 (setq frames (cdr frames)))
320 (copy-face old-face new-face t)) 317 (copy-face old-face new-face t))
318 (setq old-face (internal-get-face old-face frame))
319 (setq new-face (or (internal-find-face new-face new-frame)
320 (make-face new-face)))
321 (set-face-font new-face (face-font old-face frame) new-frame) 321 (set-face-font new-face (face-font old-face frame) new-frame)
322 (set-face-foreground new-face (face-foreground old-face frame) new-frame) 322 (set-face-foreground new-face (face-foreground old-face frame) new-frame)
323 (set-face-background new-face (face-background old-face frame) new-frame) 323 (set-face-background new-face (face-background old-face frame) new-frame)