(tty_supports_face_attributes_p): Use instead of LFACE_INVERSE_INDEX
authorRichard M. Stallman <rms@gnu.org>
Mon, 27 Aug 2007 03:54:16 +0000 (03:54 +0000)
committerRichard M. Stallman <rms@gnu.org>
Mon, 27 Aug 2007 03:54:16 +0000 (03:54 +0000)
and LFACE_BACKGROUND_INDEX in incorrectly copied code.

admin/FOR-RELEASE
src/ChangeLog
src/xfaces.c

index 35f6850..506fb31 100644 (file)
@@ -49,6 +49,8 @@ http://lists.gnu.org/archive/html/emacs-devel/2007-08/msg00385.html
 ** Check all non-file-scope static vars to make sure they
 won't lose on USG or HPUX systems.
 
+** davidk@lysator.liu.se, 21 Jun: display-buffer change.
+
 * FIXES FOR EMACS 22.3
 
 Here we list any small fixes that arrived too late for Emacs 22.2, but
index bf46297..73a906b 100644 (file)
@@ -1,3 +1,13 @@
+2007-08-27  Richard Stallman  <rms@gnu.org>
+
+       * eval.c (condition-case): Doc fix.
+
+2007-08-27  Masatake YAMATO  <jet@gyve.org>
+
+       * xfaces.c (tty_supports_face_attributes_p): Fix code
+       for LFACE_INVERSE_INDEX and LFACE_BACKGROUND_INDEX; code
+       was copied and not edited.
+
 2007-08-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * lread.c (load_warn_old_style_backquotes): Fix up array size typo.
index 31e0337..26c98c4 100644 (file)
@@ -6064,7 +6064,7 @@ tty_supports_face_attributes_p (f, attrs, def_face)
   val = attrs[LFACE_INVERSE_INDEX];
   if (!UNSPECIFIEDP (val))
     {
-      if (face_attr_equal_p (val, def_attrs[LFACE_UNDERLINE_INDEX]))
+      if (face_attr_equal_p (val, def_attrs[LFACE_INVERSE_INDEX]))
        return 0;               /* same as default */
       else
        test_caps |= TTY_CAP_INVERSE;
@@ -6107,7 +6107,7 @@ tty_supports_face_attributes_p (f, attrs, def_face)
   bg = attrs[LFACE_BACKGROUND_INDEX];
   if (STRINGP (bg))
     {
-      Lisp_Object def_bg = def_attrs[LFACE_FOREGROUND_INDEX];
+      Lisp_Object def_bg = def_attrs[LFACE_BACKGROUND_INDEX];
 
       if (face_attr_equal_p (bg, def_bg))
        return 0;               /* same as default */