aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChong Yidong <[email protected]>2011-07-22 01:02:24 -0400
committerChong Yidong <[email protected]>2011-07-22 01:02:24 -0400
commit043604ee51e5b5e0d0f645b999a35a1609a16b24 (patch)
tree4c8f548837455bf6c41a7fc21517893a6090fe9f
parentda4adb048de353aebca7ec75548a7f94554f5073 (diff)
Fix --reverse-video on ttys.
* src/frame.c (Fmodify_frame_parameters): In tty case, update the default face if necessary. Fixes: debbugs:4238
-rw-r--r--src/ChangeLog5
-rw-r--r--src/frame.c8
2 files changed, 8 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 23ece8dfed..65cd07df0a 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
+2011-07-22 Chong Yidong <[email protected]>
+
+ * frame.c (Fmodify_frame_parameters): In tty case, update the
+ default face if necessary (Bug#4238).
+
2011-07-21 Chong Yidong <[email protected]>
* editfns.c (Fstring_to_char): No need to explain what a character
diff --git a/src/frame.c b/src/frame.c
index 635996ca42..19ce78dfd9 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2437,11 +2437,9 @@ use is not recommended. Explicitly check for a frame-parameter instead. */)
val = values[i];
store_frame_param (f, prop, val);
- /* Changing the background color might change the background
- mode, so that we have to load new defface specs.
- Call frame-set-background-mode to do that. */
- if (EQ (prop, Qbackground_color))
- call1 (Qframe_set_background_mode, frame);
+ if (EQ (prop, Qforeground_color)
+ || EQ (prop, Qbackground_color))
+ update_face_from_frame_parameter (f, prop, val);
}
}
return Qnil;