From 043604ee51e5b5e0d0f645b999a35a1609a16b24 Mon Sep 17 00:00:00 2001 From: Chong Yidong Date: Fri, 22 Jul 2011 01:02:24 -0400 Subject: Fix --reverse-video on ttys. * src/frame.c (Fmodify_frame_parameters): In tty case, update the default face if necessary. Fixes: debbugs:4238 --- src/frame.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/frame.c') 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. */) 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; -- cgit v1.2.1