Commit 578b4e9d authored by Richard M. Stallman's avatar Richard M. Stallman
Browse files

(custom-theme-set-faces): Undo previous change.

parent 01d2eac8
2007-09-17 Richard Stallman <rms@gnu.org>
* cus-face.el (custom-theme-set-faces): Undo previous change.
* faces.el (face-spec-set): When FRAME nil, look up each frame in SPEC.
2007-09-17 Glenn Morris <rgm@gnu.org>
* textmodes/tex-mode.el (tex-region): Simplify previous change,
......
......@@ -342,17 +342,16 @@ FACE's list property `theme-face' \(using `custom-push-theme')."
(unless (facep face)
(make-empty-face face))
(put face 'face-comment comment)
(dolist (frame (frame-list))
(face-spec-set face spec frame)))
(setq args (cdr args)))
;; Old format, a plist of FACE SPEC pairs.
(let ((face (nth 0 args))
(spec (nth 1 args)))
(if (get face 'face-alias)
(setq face (get face 'face-alias)))
(put face 'saved-face spec)
(custom-push-theme 'theme-face face theme 'set spec))
(setq args (cdr (cdr args))))))))
(face-spec-set face spec nil))
(setq args (cdr args)))
;; Old format, a plist of FACE SPEC pairs.
(let ((face (nth 0 args))
(spec (nth 1 args)))
(if (get face 'face-alias)
(setq face (get face 'face-alias)))
(put face 'saved-face spec)
(custom-push-theme 'theme-face face theme 'set spec))
(setq args (cdr (cdr args))))))))
;; XEmacs compability function. In XEmacs, when you reset a Custom
;; Theme, you have to specify the theme to reset it to. We just apply
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment