From: Miles Bader Date: Thu, 19 Oct 2000 08:37:11 +0000 (+0000) Subject: (frame-set-background-mode): `unspecified' &c are symbols, not strings. X-Git-Tag: emacs-pretest-21.0.90~754 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d8abcd91a3b2d7c86b4cc8e4da3372f3b89a8f24;p=emacs.git (frame-set-background-mode): `unspecified' &c are symbols, not strings. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 7ece3de69aa..9e08f40ecc9 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2000-10-19 Miles Bader + + * faces.el (frame-set-background-mode): `unspecified' &c are + symbols, not strings. + 2000-10-19 Eli Zaretskii * term/tty-colors.el (color-name-rgb-alist): Add a comment diff --git a/lisp/faces.el b/lisp/faces.el index f4bd0eee9ce..7a5881fb511 100644 --- a/lisp/faces.el +++ b/lisp/faces.el @@ -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