aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorChong Yidong2011-07-22 01:02:24 -0400
committerChong Yidong2011-07-22 01:02:24 -0400
commit043604ee51e5b5e0d0f645b999a35a1609a16b24 (patch)
tree4c8f548837455bf6c41a7fc21517893a6090fe9f /src
parentda4adb048de353aebca7ec75548a7f94554f5073 (diff)
downloademacs-043604ee51e5b5e0d0f645b999a35a1609a16b24.tar.gz
emacs-043604ee51e5b5e0d0f645b999a35a1609a16b24.zip
Fix --reverse-video on ttys.
* src/frame.c (Fmodify_frame_parameters): In tty case, update the default face if necessary. Fixes: debbugs:4238
Diffstat (limited to 'src')
-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 23ece8dfed5..65cd07df0ae 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12011-07-22 Chong Yidong <cyd@stupidchicken.com>
2
3 * frame.c (Fmodify_frame_parameters): In tty case, update the
4 default face if necessary (Bug#4238).
5
12011-07-21 Chong Yidong <cyd@stupidchicken.com> 62011-07-21 Chong Yidong <cyd@stupidchicken.com>
2 7
3 * editfns.c (Fstring_to_char): No need to explain what a character 8 * editfns.c (Fstring_to_char): No need to explain what a character
diff --git a/src/frame.c b/src/frame.c
index 635996ca424..19ce78dfd9c 100644
--- a/src/frame.c
+++ b/src/frame.c
@@ -2437,11 +2437,9 @@ use is not recommended. Explicitly check for a frame-parameter instead. */)
2437 val = values[i]; 2437 val = values[i];
2438 store_frame_param (f, prop, val); 2438 store_frame_param (f, prop, val);
2439 2439
2440 /* Changing the background color might change the background 2440 if (EQ (prop, Qforeground_color)
2441 mode, so that we have to load new defface specs. 2441 || EQ (prop, Qbackground_color))
2442 Call frame-set-background-mode to do that. */ 2442 update_face_from_frame_parameter (f, prop, val);
2443 if (EQ (prop, Qbackground_color))
2444 call1 (Qframe_set_background_mode, frame);
2445 } 2443 }
2446 } 2444 }
2447 return Qnil; 2445 return Qnil;