Fix --reverse-video on ttys.
authorChong Yidong <cyd@stupidchicken.com>
Fri, 22 Jul 2011 05:02:24 +0000 (01:02 -0400)
committerChong Yidong <cyd@stupidchicken.com>
Fri, 22 Jul 2011 05:02:24 +0000 (01:02 -0400)
* src/frame.c (Fmodify_frame_parameters): In tty case, update the
default face if necessary.

Fixes: debbugs:4238

src/ChangeLog
src/frame.c

index 23ece8d..65cd07d 100644 (file)
@@ -1,3 +1,8 @@
+2011-07-22  Chong Yidong  <cyd@stupidchicken.com>
+
+       * frame.c (Fmodify_frame_parameters): In tty case, update the
+       default face if necessary (Bug#4238).
+
 2011-07-21  Chong Yidong  <cyd@stupidchicken.com>
 
        * editfns.c (Fstring_to_char): No need to explain what a character
index 635996c..19ce78d 100644 (file)
@@ -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;