aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorJuri Linkov2005-06-29 20:57:16 +0000
committerJuri Linkov2005-06-29 20:57:16 +0000
commit9b07ab0a51714a3685308d7c8e6900e37e1fe415 (patch)
tree99dbfbe8a4f77fcc6cca7cfb675978c1c1010b7a /lisp
parent433ec6602558f4e6557b20dcb9824af5a329603b (diff)
downloademacs-9b07ab0a51714a3685308d7c8e6900e37e1fe415.tar.gz
emacs-9b07ab0a51714a3685308d7c8e6900e37e1fe415.zip
(rxvt-set-background-mode):
Set default-frame-background-mode instead of frame-background-mode.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/ChangeLog14
-rw-r--r--lisp/term/rxvt.el4
2 files changed, 16 insertions, 2 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 27663abdaf8..c5b8f56c074 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,17 @@
12005-06-29 Juri Linkov <juri@jurta.org>
2
3 * faces.el (default-frame-background-mode): New internal variable.
4 (frame-set-background-mode): Use it.
5
6 * startup.el (normal-top-level): Set default-frame-background-mode
7 instead of frame-background-mode. Before setting it, test for its
8 nil value. Remove tests for frame-background-mode and frame
9 parameter `reverse'. Add test for "unspecified-fg".
10
11 * term/xterm.el (xterm-rxvt-set-background-mode):
12 * term/rxvt.el (rxvt-set-background-mode):
13 Set default-frame-background-mode instead of frame-background-mode.
14
12005-06-29 Juanma Barranquero <lekktu@gmail.com> 152005-06-29 Juanma Barranquero <lekktu@gmail.com>
2 16
3 * imenu.el (imenu--completion-buffer): 17 * imenu.el (imenu--completion-buffer):
diff --git a/lisp/term/rxvt.el b/lisp/term/rxvt.el
index 7839ebba95d..a47b6787913 100644
--- a/lisp/term/rxvt.el
+++ b/lisp/term/rxvt.el
@@ -150,7 +150,7 @@ for the currently selected frame."
150 "Set background mode as appropriate for the default rxvt colors." 150 "Set background mode as appropriate for the default rxvt colors."
151 (let ((fgbg (getenv "COLORFGBG")) 151 (let ((fgbg (getenv "COLORFGBG"))
152 bg rgb) 152 bg rgb)
153 (setq frame-background-mode 'light) ; default 153 (setq default-frame-background-mode 'light)
154 (when (and fgbg 154 (when (and fgbg
155 (string-match ".*;\\([0-9][0-9]?\\)\\'" fgbg)) 155 (string-match ".*;\\([0-9][0-9]?\\)\\'" fgbg))
156 (setq bg (string-to-number (substring fgbg (match-beginning 1)))) 156 (setq bg (string-to-number (substring fgbg (match-beginning 1))))
@@ -163,7 +163,7 @@ for the currently selected frame."
163 ;; The following line assumes that white is the 15th 163 ;; The following line assumes that white is the 15th
164 ;; color in rxvt-standard-colors. 164 ;; color in rxvt-standard-colors.
165 (* (apply '+ (car (cddr (nth 15 rxvt-standard-colors)))) 0.6)) 165 (* (apply '+ (car (cddr (nth 15 rxvt-standard-colors)))) 0.6))
166 (setq frame-background-mode 'dark))) 166 (setq default-frame-background-mode 'dark)))
167 (frame-set-background-mode (selected-frame)))) 167 (frame-set-background-mode (selected-frame))))
168 168
169;; Do it! 169;; Do it!