diff options
| author | Miles Bader | 2005-06-20 10:45:31 +0000 |
|---|---|---|
| committer | Miles Bader | 2005-06-20 10:45:31 +0000 |
| commit | b4e49aee845c2666cea162e3fc83d977207392b9 (patch) | |
| tree | 3e8f13584c3bc95bc2172a501ca4c5f920329872 /src | |
| parent | 01ba96624b41bc15d40ccb0a7095d081f0ee0e4d (diff) | |
| download | emacs-b4e49aee845c2666cea162e3fc83d977207392b9.tar.gz emacs-b4e49aee845c2666cea162e3fc83d977207392b9.zip | |
Revision: miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-435
Implement tty vertical-divider face
2005-06-20 Miles Bader <miles@gnu.org>
* lisp/faces.el (vertical-divider): New face.
2005-06-20 Miles Bader <miles@gnu.org>
* man/display.texi (Faces): Add `vertical-divider'.
2005-06-20 Miles Bader <miles@gnu.org>
* src/xfaces.c (Qvertical_divider): New variable.
(realize_basic_faces): Realize its face.
(syms_of_xfaces): Initialize it.
* src/dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'.
* src/dispnew.c (build_frame_matrix_from_leaf_window): Display vertical
window-separator on ttys using `vertical-divider' face by default.
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 11 | ||||
| -rw-r--r-- | src/dispextern.h | 1 | ||||
| -rw-r--r-- | src/dispnew.c | 13 | ||||
| -rw-r--r-- | src/xfaces.c | 5 |
4 files changed, 25 insertions, 5 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 12e52237e9b..ab060453f64 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,14 @@ | |||
| 1 | 2005-06-20 Miles Bader <miles@gnu.org> | ||
| 2 | |||
| 3 | * xfaces.c (Qvertical_divider): New variable. | ||
| 4 | (realize_basic_faces): Realize its face. | ||
| 5 | (syms_of_xfaces): Initialize it. | ||
| 6 | |||
| 7 | * dispextern.h (enum face_id): Add `VERTICAL_DIVIDER_FACE_ID'. | ||
| 8 | |||
| 9 | * dispnew.c (build_frame_matrix_from_leaf_window): Display vertical | ||
| 10 | window-separator on ttys using `vertical-divider' face by default. | ||
| 11 | |||
| 1 | 2005-06-17 Richard M. Stallman <rms@gnu.org> | 12 | 2005-06-17 Richard M. Stallman <rms@gnu.org> |
| 2 | 13 | ||
| 3 | * xdisp.c (get_next_display_element): Reverse | 14 | * xdisp.c (get_next_display_element): Reverse |
diff --git a/src/dispextern.h b/src/dispextern.h index 63425e58039..4d98f3f1dfd 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1593,6 +1593,7 @@ enum face_id | |||
| 1593 | CURSOR_FACE_ID, | 1593 | CURSOR_FACE_ID, |
| 1594 | MOUSE_FACE_ID, | 1594 | MOUSE_FACE_ID, |
| 1595 | MENU_FACE_ID, | 1595 | MENU_FACE_ID, |
| 1596 | VERTICAL_DIVIDER_FACE_ID, | ||
| 1596 | BASIC_FACE_ID_SENTINEL | 1597 | BASIC_FACE_ID_SENTINEL |
| 1597 | }; | 1598 | }; |
| 1598 | 1599 | ||
diff --git a/src/dispnew.c b/src/dispnew.c index 727547d089d..5b0069b03c2 100644 --- a/src/dispnew.c +++ b/src/dispnew.c | |||
| @@ -2719,10 +2719,15 @@ build_frame_matrix_from_leaf_window (frame_matrix, w) | |||
| 2719 | if (!WINDOW_RIGHTMOST_P (w)) | 2719 | if (!WINDOW_RIGHTMOST_P (w)) |
| 2720 | { | 2720 | { |
| 2721 | struct Lisp_Char_Table *dp = window_display_table (w); | 2721 | struct Lisp_Char_Table *dp = window_display_table (w); |
| 2722 | right_border_glyph = (dp && INTEGERP (DISP_BORDER_GLYPH (dp)) | 2722 | |
| 2723 | ? XINT (DISP_BORDER_GLYPH (dp)) | 2723 | right_border_glyph |
| 2724 | : '|'); | 2724 | = ((dp && INTEGERP (DISP_BORDER_GLYPH (dp))) |
| 2725 | right_border_glyph = spec_glyph_lookup_face (w, right_border_glyph); | 2725 | ? spec_glyph_lookup_face (w, XINT (DISP_BORDER_GLYPH (dp))) |
| 2726 | : '|'); | ||
| 2727 | |||
| 2728 | if (FAST_GLYPH_FACE (right_border_glyph) <= 0) | ||
| 2729 | right_border_glyph | ||
| 2730 | = FAST_MAKE_GLYPH (right_border_glyph, VERTICAL_DIVIDER_FACE_ID); | ||
| 2726 | } | 2731 | } |
| 2727 | } | 2732 | } |
| 2728 | else | 2733 | else |
diff --git a/src/xfaces.c b/src/xfaces.c index 11e72ab7d05..b7ed50d35fe 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -324,7 +324,7 @@ Lisp_Object Qframe_update_face_colors; | |||
| 324 | 324 | ||
| 325 | Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe; | 325 | Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe; |
| 326 | Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu; | 326 | Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu; |
| 327 | Lisp_Object Qmode_line_inactive; | 327 | Lisp_Object Qmode_line_inactive, Qvertical_divider; |
| 328 | extern Lisp_Object Qmode_line; | 328 | extern Lisp_Object Qmode_line; |
| 329 | 329 | ||
| 330 | /* The symbol `face-alias'. A symbols having that property is an | 330 | /* The symbol `face-alias'. A symbols having that property is an |
| @@ -6882,6 +6882,7 @@ realize_basic_faces (f) | |||
| 6882 | realize_named_face (f, Qcursor, CURSOR_FACE_ID); | 6882 | realize_named_face (f, Qcursor, CURSOR_FACE_ID); |
| 6883 | realize_named_face (f, Qmouse, MOUSE_FACE_ID); | 6883 | realize_named_face (f, Qmouse, MOUSE_FACE_ID); |
| 6884 | realize_named_face (f, Qmenu, MENU_FACE_ID); | 6884 | realize_named_face (f, Qmenu, MENU_FACE_ID); |
| 6885 | realize_named_face (f, Qvertical_divider, VERTICAL_DIVIDER_FACE_ID); | ||
| 6885 | 6886 | ||
| 6886 | /* Reflect changes in the `menu' face in menu bars. */ | 6887 | /* Reflect changes in the `menu' face in menu bars. */ |
| 6887 | if (FRAME_FACE_CACHE (f)->menu_face_changed_p) | 6888 | if (FRAME_FACE_CACHE (f)->menu_face_changed_p) |
| @@ -8011,6 +8012,8 @@ syms_of_xfaces () | |||
| 8011 | staticpro (&Qmouse); | 8012 | staticpro (&Qmouse); |
| 8012 | Qmode_line_inactive = intern ("mode-line-inactive"); | 8013 | Qmode_line_inactive = intern ("mode-line-inactive"); |
| 8013 | staticpro (&Qmode_line_inactive); | 8014 | staticpro (&Qmode_line_inactive); |
| 8015 | Qvertical_divider = intern ("vertical-divider"); | ||
| 8016 | staticpro (&Qvertical_divider); | ||
| 8014 | Qtty_color_desc = intern ("tty-color-desc"); | 8017 | Qtty_color_desc = intern ("tty-color-desc"); |
| 8015 | staticpro (&Qtty_color_desc); | 8018 | staticpro (&Qtty_color_desc); |
| 8016 | Qtty_color_standard_values = intern ("tty-color-standard-values"); | 8019 | Qtty_color_standard_values = intern ("tty-color-standard-values"); |