diff options
author | Juri Linkov <juri@jurta.org> | 2005-06-29 20:55:30 +0000 |
---|---|---|
committer | Juri Linkov <juri@jurta.org> | 2005-06-29 20:55:30 +0000 |
commit | 61b91ad13bcf6b51756593229899a0612a306197 (patch) | |
tree | 652a6d397cbc58bf4d15ca9f20a4ca5ed11eef63 /lisp/startup.el | |
parent | a4ea869cfd4da4dd49e81941be0a3e07533bc210 (diff) | |
download | emacs-61b91ad13bcf6b51756593229899a0612a306197.tar.gz |
(normal-top-level): Set default-frame-background-mode
instead of frame-background-mode. Before setting it, test for its
nil value. Remove tests for frame-background-mode and frame
parameter `reverse'. Add test for "unspecified-fg".
Diffstat (limited to 'lisp/startup.el')
-rw-r--r-- | lisp/startup.el | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/lisp/startup.el b/lisp/startup.el index 6af6e748ee5..f8c4958c122 100644 --- a/lisp/startup.el +++ b/lisp/startup.el @@ -444,24 +444,23 @@ or `CVS', and any subdirectory that contains a file named `.nosearch'." ;; frame-notice-user-settings didn't (such as on a tty). ;; frame-set-background-mode is idempotent, so it won't ;; cause any harm if it's already been done. - (let ((frame-background-mode frame-background-mode) - (frame (selected-frame)) + (let ((frame (selected-frame)) term) (when (and (null window-system) - ;; Don't override a possibly customized value. - (null frame-background-mode) - ;; Don't override user specifications. - (null (frame-parameter frame 'reverse)) + ;; Don't override default set by files in lisp/term. + (null default-frame-background-mode) (let ((bg (frame-parameter frame 'background-color))) (or (null bg) - (member bg '(unspecified "unspecified-bg"))))) + (member bg '(unspecified "unspecified-bg" + "unspecified-fg"))))) + (setq term (getenv "TERM")) ;; Some files in lisp/term do a better job with the ;; background mode, but we leave this here anyway, in ;; case they remove those files. (if (string-match "^\\(xterm\\|rxvt\\|dtterm\\|eterm\\)" term) - (setq frame-background-mode 'light))) + (setq default-frame-background-mode 'light))) (frame-set-background-mode (selected-frame))))) ;; Now we know the user's default font, so add it to the menu. |