diff options
| author | Juri Linkov | 2005-06-29 20:56:09 +0000 |
|---|---|---|
| committer | Juri Linkov | 2005-06-29 20:56:09 +0000 |
| commit | 433ec6602558f4e6557b20dcb9824af5a329603b (patch) | |
| tree | c54f75639ce3e1fc43b0183d35173c82a7f4b5f0 | |
| parent | 61b91ad13bcf6b51756593229899a0612a306197 (diff) | |
| download | emacs-433ec6602558f4e6557b20dcb9824af5a329603b.tar.gz emacs-433ec6602558f4e6557b20dcb9824af5a329603b.zip | |
(xterm-rxvt-set-background-mode):
Set default-frame-background-mode instead of frame-background-mode.
| -rw-r--r-- | lisp/term/xterm.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lisp/term/xterm.el b/lisp/term/xterm.el index b55f18f6883..2a2df2564e4 100644 --- a/lisp/term/xterm.el +++ b/lisp/term/xterm.el | |||
| @@ -366,7 +366,7 @@ versions of xterm." | |||
| 366 | "Set background mode as appropriate for the default rxvt colors." | 366 | "Set background mode as appropriate for the default rxvt colors." |
| 367 | (let ((fgbg (getenv "COLORFGBG")) | 367 | (let ((fgbg (getenv "COLORFGBG")) |
| 368 | bg rgb) | 368 | bg rgb) |
| 369 | (setq frame-background-mode 'light) ; default | 369 | (setq default-frame-background-mode 'light) |
| 370 | (when (and fgbg | 370 | (when (and fgbg |
| 371 | (string-match ".*;\\([0-9][0-9]?\\)\\'" fgbg)) | 371 | (string-match ".*;\\([0-9][0-9]?\\)\\'" fgbg)) |
| 372 | (setq bg (string-to-number (substring fgbg (match-beginning 1)))) | 372 | (setq bg (string-to-number (substring fgbg (match-beginning 1)))) |
| @@ -379,7 +379,7 @@ versions of xterm." | |||
| 379 | ;; The following line assumes that white is the 15th | 379 | ;; The following line assumes that white is the 15th |
| 380 | ;; color in xterm-standard-colors. | 380 | ;; color in xterm-standard-colors. |
| 381 | (* (apply '+ (car (cddr (nth 15 xterm-standard-colors)))) 0.6)) | 381 | (* (apply '+ (car (cddr (nth 15 xterm-standard-colors)))) 0.6)) |
| 382 | (setq frame-background-mode 'dark))) | 382 | (setq default-frame-background-mode 'dark))) |
| 383 | (frame-set-background-mode (selected-frame)))) | 383 | (frame-set-background-mode (selected-frame)))) |
| 384 | 384 | ||
| 385 | ;; Do it! | 385 | ;; Do it! |