diff options
| author | Eli Zaretskii | 2001-11-03 15:55:17 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-11-03 15:55:17 +0000 |
| commit | 528e14166495e50bb0ac94d574bd849da96ac33f (patch) | |
| tree | 052d1398e32e25abe0a75275998540345fedc393 | |
| parent | 9ca8a5a0ed3c42ef75d1fca3e457a78edbca1fe6 (diff) | |
| download | emacs-528e14166495e50bb0ac94d574bd849da96ac33f.tar.gz emacs-528e14166495e50bb0ac94d574bd849da96ac33f.zip | |
(set-background-color, set-foreground-color): Call
face-set-after-frame-default, to propagate the new colors to the
frame's parameters alist.
| -rw-r--r-- | lisp/ChangeLog | 4 | ||||
| -rw-r--r-- | lisp/frame.el | 8 |
2 files changed, 10 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index b8f44cf28bd..117b4fe4332 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,5 +1,9 @@ | |||
| 1 | 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il> | 1 | 2001-11-03 Eli Zaretskii <eliz@is.elta.co.il> |
| 2 | 2 | ||
| 3 | * frame.el (set-background-color, set-foreground-color): Call | ||
| 4 | face-set-after-frame-default, to propagate the new colors to the | ||
| 5 | frame's parameters alist. | ||
| 6 | |||
| 3 | * calendar/timeclock.el (timeclock-out): Signal an error if | 7 | * calendar/timeclock.el (timeclock-out): Signal an error if |
| 4 | timeclock-last-event is nil. | 8 | timeclock-last-event is nil. |
| 5 | 9 | ||
diff --git a/lisp/frame.el b/lisp/frame.el index 983233414d7..6c42a4981de 100644 --- a/lisp/frame.el +++ b/lisp/frame.el | |||
| @@ -810,7 +810,9 @@ When called interactively, prompt for the name of the color to use. | |||
| 810 | To get the frame's current background color, use `frame-parameters'." | 810 | To get the frame's current background color, use `frame-parameters'." |
| 811 | (interactive (list (facemenu-read-color))) | 811 | (interactive (list (facemenu-read-color))) |
| 812 | (modify-frame-parameters (selected-frame) | 812 | (modify-frame-parameters (selected-frame) |
| 813 | (list (cons 'background-color color-name)))) | 813 | (list (cons 'background-color color-name))) |
| 814 | (or window-system | ||
| 815 | (face-set-after-frame-default (selected-frame)))) | ||
| 814 | 816 | ||
| 815 | (defun set-foreground-color (color-name) | 817 | (defun set-foreground-color (color-name) |
| 816 | "Set the foreground color of the selected frame to COLOR-NAME. | 818 | "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. | |||
| 818 | To get the frame's current foreground color, use `frame-parameters'." | 820 | To get the frame's current foreground color, use `frame-parameters'." |
| 819 | (interactive (list (facemenu-read-color))) | 821 | (interactive (list (facemenu-read-color))) |
| 820 | (modify-frame-parameters (selected-frame) | 822 | (modify-frame-parameters (selected-frame) |
| 821 | (list (cons 'foreground-color color-name)))) | 823 | (list (cons 'foreground-color color-name))) |
| 824 | (or window-system | ||
| 825 | (face-set-after-frame-default (selected-frame)))) | ||
| 822 | 826 | ||
| 823 | (defun set-cursor-color (color-name) | 827 | (defun set-cursor-color (color-name) |
| 824 | "Set the text cursor color of the selected frame to COLOR-NAME. | 828 | "Set the text cursor color of the selected frame to COLOR-NAME. |