Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
d8abcd91
Commit
d8abcd91
authored
Oct 19, 2000
by
Miles Bader
Browse files
(frame-set-background-mode): `unspecified' &c are symbols, not strings.
parent
e8bce0a9
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
3 deletions
+10
-3
lisp/ChangeLog
lisp/ChangeLog
+5
-0
lisp/faces.el
lisp/faces.el
+5
-3
No files found.
lisp/ChangeLog
View file @
d8abcd91
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
...
...
lisp/faces.el
View file @
d8abcd91
...
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment