aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman2007-09-17 02:55:37 +0000
committerRichard M. Stallman2007-09-17 02:55:37 +0000
commit578b4e9deeca92fa33d8e46c3e234b224169880d (patch)
tree135453d7f6d8da9a5ebbfb0b8858c36f10744a46
parent01d2eac830341410dbe8b1ddfe340e80562bd04f (diff)
downloademacs-578b4e9deeca92fa33d8e46c3e234b224169880d.tar.gz
emacs-578b4e9deeca92fa33d8e46c3e234b224169880d.zip
(custom-theme-set-faces): Undo previous change.
-rw-r--r--lisp/ChangeLog6
-rw-r--r--lisp/cus-face.el21
2 files changed, 16 insertions, 11 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 3d6075ce27f..340c8c796b1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,9 @@
12007-09-17 Richard Stallman <rms@gnu.org>
2
3 * cus-face.el (custom-theme-set-faces): Undo previous change.
4
5 * faces.el (face-spec-set): When FRAME nil, look up each frame in SPEC.
6
12007-09-17 Glenn Morris <rgm@gnu.org> 72007-09-17 Glenn Morris <rgm@gnu.org>
2 8
3 * textmodes/tex-mode.el (tex-region): Simplify previous change, 9 * textmodes/tex-mode.el (tex-region): Simplify previous change,
diff --git a/lisp/cus-face.el b/lisp/cus-face.el
index 09cf058dc64..92274dcbe21 100644
--- a/lisp/cus-face.el
+++ b/lisp/cus-face.el
@@ -342,17 +342,16 @@ FACE's list property `theme-face' \(using `custom-push-theme')."
342 (unless (facep face) 342 (unless (facep face)
343 (make-empty-face face)) 343 (make-empty-face face))
344 (put face 'face-comment comment) 344 (put face 'face-comment comment)
345 (dolist (frame (frame-list)) 345 (face-spec-set face spec nil))
346 (face-spec-set face spec frame))) 346 (setq args (cdr args)))
347 (setq args (cdr args))) 347 ;; Old format, a plist of FACE SPEC pairs.
348 ;; Old format, a plist of FACE SPEC pairs. 348 (let ((face (nth 0 args))
349 (let ((face (nth 0 args)) 349 (spec (nth 1 args)))
350 (spec (nth 1 args))) 350 (if (get face 'face-alias)
351 (if (get face 'face-alias) 351 (setq face (get face 'face-alias)))
352 (setq face (get face 'face-alias))) 352 (put face 'saved-face spec)
353 (put face 'saved-face spec) 353 (custom-push-theme 'theme-face face theme 'set spec))
354 (custom-push-theme 'theme-face face theme 'set spec)) 354 (setq args (cdr (cdr args))))))))
355 (setq args (cdr (cdr args))))))))
356 355
357;; XEmacs compability function. In XEmacs, when you reset a Custom 356;; XEmacs compability function. In XEmacs, when you reset a Custom
358;; Theme, you have to specify the theme to reset it to. We just apply 357;; Theme, you have to specify the theme to reset it to. We just apply