]> git.eshelyaron.com Git - emacs.git/commitdiff
(set-background-color, set-foreground-color): Call
authorEli Zaretskii <eliz@gnu.org>
Sat, 3 Nov 2001 15:55:17 +0000 (15:55 +0000)
committerEli Zaretskii <eliz@gnu.org>
Sat, 3 Nov 2001 15:55:17 +0000 (15:55 +0000)
face-set-after-frame-default, to propagate the new colors to the
frame's parameters alist.

lisp/ChangeLog
lisp/frame.el

index b8f44cf28bdc1fbe53809572e7153de467d2255c..117b4fe4332f98cf9210ec25c2448e0dc5903cfc 100644 (file)
@@ -1,5 +1,9 @@
 2001-11-03  Eli Zaretskii  <eliz@is.elta.co.il>
 
+       * frame.el (set-background-color, set-foreground-color): Call
+       face-set-after-frame-default, to propagate the new colors to the
+       frame's parameters alist.
+
        * calendar/timeclock.el (timeclock-out): Signal an error if
        timeclock-last-event is nil.
 
index 983233414d738d1c8414ba59e443760c42971da8..6c42a4981de668fb918ea4bcb0732f60530db2ea 100644 (file)
@@ -810,7 +810,9 @@ When called interactively, prompt for the name of the color to use.
 To get the frame's current background color, use `frame-parameters'."
   (interactive (list (facemenu-read-color)))
   (modify-frame-parameters (selected-frame)
-                          (list (cons 'background-color color-name))))
+                          (list (cons 'background-color color-name)))
+  (or window-system
+      (face-set-after-frame-default (selected-frame))))
 
 (defun set-foreground-color (color-name)
   "Set the foreground color of the selected frame to COLOR-NAME.
@@ -818,7 +820,9 @@ When called interactively, prompt for the name of the color to use.
 To get the frame's current foreground color, use `frame-parameters'."
   (interactive (list (facemenu-read-color)))
   (modify-frame-parameters (selected-frame)
-                          (list (cons 'foreground-color color-name))))
+                          (list (cons 'foreground-color color-name)))
+  (or window-system
+      (face-set-after-frame-default (selected-frame))))
 
 (defun set-cursor-color (color-name)
   "Set the text cursor color of the selected frame to COLOR-NAME.