aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1993-05-25 02:28:03 +0000
committerRichard M. Stallman1993-05-25 02:28:03 +0000
commit1dd6d2a2dd22fa69f0d3be1112c908889fd83aa9 (patch)
treee4ef351db40bfec4456d47770360e929db5fa301
parentf0614854a5d18eab37fc76b2f38b8f916a191e92 (diff)
downloademacs-1dd6d2a2dd22fa69f0d3be1112c908889fd83aa9.tar.gz
emacs-1dd6d2a2dd22fa69f0d3be1112c908889fd83aa9.zip
(x-create-frame-with-faces): Handle `reverse' as parameter.
-rw-r--r--lisp/faces.el11
1 files changed, 11 insertions, 0 deletions
diff --git a/lisp/faces.el b/lisp/faces.el
index 1f4f6ba723f..34b88ff5950 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -724,6 +724,17 @@ If NOERROR is non-nil, return nil on failure."
724 (rest faces)) 724 (rest faces))
725 (set-frame-face-alist frame faces) 725 (set-frame-face-alist frame faces)
726 726
727 (if (cdr (or (assq 'reverse parameters)
728 (assq 'reverse default-frame-alist)))
729 (let ((params (frame-parameters frame)))
730 (modify-frame-parameters
731 frame
732 (list (cons 'foreground-color (cdr (assq 'background-color params)))
733 (cons 'background-color (cdr (assq 'foreground-color params)))
734 (cons 'mouse-color (cdr (assq 'background-color params)))
735 (cons 'cursor-color (cdr (assq 'background-color params)))
736 (cons 'border-color (cdr (assq 'background-color params)))))))
737
727 ;; Copy the vectors that represent the faces. 738 ;; Copy the vectors that represent the faces.
728 ;; Also fill them in from X resources. 739 ;; Also fill them in from X resources.
729 (while rest 740 (while rest