Files
emacs/lisp
Eli Zaretskii f9d2fdc464 Changes for separate unspecified foreground and background colors
on character terminals:

* dispextern.h (FACE_TTY_DEFAULT_FG_COLOR)
(FACE_TTY_DEFAULT_BG_COLOR):  New macros.

* xfaces.c (Qunspecified_fg, Qunspecified_bg): New variables.
(syms_of_xfaces): Initialize and staticpro them.
(tty_defined_color): If the color name is unspecified-fg or
unspecified-bg, return FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR, respectively, as the pixel value.
(tty_color_name): If the color pixel value is either
FACE_TTY_DEFAULT_FG_COLOR or FACE_TTY_DEFAULT_BG_COLOR, return
Qunspecified_fg or Qunspecified_bg, respectively.
(Finternal_set_lisp_face_attribute): Allow values Qunspecified_fg
and Qunspecified_bg for foreground and background colors.
(realize_default_face): If the foreground and background colors
are not specified, default to Qunspecified_fg and Qunspecified_bg.
(realize_tty_face): By default, set the face colors to
FACE_TTY_DEFAULT_FG_COLOR and FACE_TTY_DEFAULT_BG_COLOR.
[MSDOS]: Handle FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR when face colors are not defined.
Reverse the colors if the default colors were reversed.

* dispnew.c (init_display): Initialize the frame pixels of the
initial frame to FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR.

* term.c (turn_on_face): If the default fore- and background
colors are reversed, enter inverse video mode.  Don't send color
escape sequences for unspecified foreground and background colors.
(turn_off_face): Handle unspecified-fg and unspecified-bg colors.

* dosfns.c (unspecified_colors): New variable.
(msdos_stdcolor_idx): Handle unspecified-fg and unspecified-bg
color names, return FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR, respectively.
(msdos_stdcolor_name): Handle FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR, return Qunspecified_fg and
Qunspecified_bg, respectively.

* msdos.c (IT_set_face): Support FACE_TTY_DEFAULT_FG_COLOR and
FACE_TTY_DEFAULT_BG_COLOR as pixel values.

* faces.el (face-read-integer, read-face-attribute)
(color-defined-p, color-values): Allow color values unspecified-fg
and unspecified-bg, handle them as unspecified.
1999-12-15 13:14:38 +00:00
..
1999-09-01 23:31:57 +00:00
1999-12-12 18:53:40 +00:00
1999-10-07 00:36:36 +00:00
1999-09-06 19:49:33 +00:00
1999-11-30 14:45:39 +00:00
1999-08-16 04:04:27 +00:00
1999-12-14 10:19:59 +00:00
1999-10-15 16:03:59 +00:00
#
1999-09-29 16:37:29 +00:00
#
1999-09-29 16:37:29 +00:00
1999-12-06 17:44:17 +00:00
1999-12-15 00:28:11 +00:00
#
1999-10-17 09:55:57 +00:00
1999-12-06 13:37:29 +00:00
1999-11-26 17:36:14 +00:00
1999-10-15 16:53:35 +00:00
1999-08-28 18:21:34 +00:00
1999-11-01 15:41:33 +00:00
1999-11-25 04:34:23 +00:00
1999-11-01 07:16:15 +00:00
1999-11-01 07:16:15 +00:00
1999-11-25 04:34:23 +00:00
1999-11-25 04:34:23 +00:00
1999-11-25 04:34:23 +00:00
1999-11-25 04:34:23 +00:00
1999-11-01 07:16:15 +00:00
1999-11-25 04:34:23 +00:00
1999-11-01 07:16:15 +00:00
1999-11-25 04:34:23 +00:00
1999-12-04 13:25:08 +00:00
1999-10-15 16:03:59 +00:00
1999-08-16 04:04:27 +00:00
1999-01-29 14:12:49 +00:00
1999-08-16 04:04:27 +00:00
1999-12-06 16:26:36 +00:00
#
1999-10-07 11:04:40 +00:00
1999-01-19 18:22:46 +00:00
#
1999-10-05 11:10:25 +00:00
#
1999-10-05 11:10:25 +00:00
1999-11-13 22:07:05 +00:00
1999-08-16 23:06:06 +00:00
1999-11-25 19:18:59 +00:00
1999-08-04 19:07:31 +00:00
1999-09-06 16:00:47 +00:00
1999-11-21 14:25:14 +00:00
1999-10-25 12:51:38 +00:00
1999-11-11 13:39:21 +00:00
1999-11-15 14:26:07 +00:00
1999-10-15 16:03:59 +00:00
1999-08-16 04:04:27 +00:00
1999-12-15 00:53:45 +00:00
1999-11-24 16:21:12 +00:00
1999-10-27 14:32:04 +00:00
1999-04-27 18:58:51 +00:00
1999-03-03 17:42:47 +00:00
1999-10-28 20:01:45 +00:00
1999-10-20 01:08:36 +00:00
1999-03-30 18:07:16 +00:00
1999-08-03 17:50:44 +00:00
1999-09-13 20:49:05 +00:00
1999-08-16 04:04:27 +00:00
1999-08-16 04:04:27 +00:00
1998-12-14 03:22:44 +00:00
1999-03-31 16:06:51 +00:00
#
1999-10-05 11:10:25 +00:00
1999-10-19 07:18:58 +00:00
1999-08-10 19:32:33 +00:00
1999-09-08 05:33:47 +00:00
1999-08-16 04:04:27 +00:00
1999-08-16 04:04:27 +00:00
1999-11-14 12:07:12 +00:00
1999-11-01 14:53:59 +00:00
#
1999-10-04 17:15:48 +00:00
1999-09-15 23:47:44 +00:00