Commit d8abcd91 authored by Miles Bader's avatar Miles Bader
Browse files

(frame-set-background-mode): `unspecified' &c are symbols, not strings.

parent e8bce0a9
2000-10-19 Miles Bader <miles@lsi.nec.co.jp>
* faces.el (frame-set-background-mode): `unspecified' &c are
symbols, not strings.
2000-10-19 Eli Zaretskii <eliz@is.elta.co.il>
* term/tty-colors.el (color-name-rgb-alist): Add a comment
......
......@@ -1304,7 +1304,9 @@ this won't have the expected effect."
(defun frame-set-background-mode (frame)
"Set up the `background-mode' and `display-type' frame parameters for FRAME."
"Set up display-dependent faces on FRAME.
Display-dependent faces are those which have different definitions
according to the `background-mode' and `display-type' frame parameters."
(let* ((bg-resource
(and window-system
(x-get-resource ".backgroundMode" "BackgroundMode")))
......@@ -1318,9 +1320,9 @@ this won't have the expected effect."
'dark)
;; Unspecified frame background color can only happen
;; on tty's.
((memq bg-color '("unspecified" "unspecified-bg"))
((memq bg-color '(unspecified unspecified-bg))
'dark)
((eq bg-color "unspecified-fg") ; inverted colors
((eq bg-color 'unspecified-fg) ; inverted colors
'light)
((>= (apply '+ (x-color-values bg-color frame))
;; Just looking at the screen, colors whose
......
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