Mercurial > emacs
comparison src/dispnew.c @ 63594:4c33b0ac74a3
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.
author | Miles Bader <miles@gnu.org> |
---|---|
date | Mon, 20 Jun 2005 10:45:31 +0000 |
parents | cbb687cf8169 |
children | 144440a09db1 5b54039912f4 |
comparison
equal
deleted
inserted
replaced
63593:5300b48844ca | 63594:4c33b0ac74a3 |
---|---|
2717 | 2717 |
2718 /* Decide whether we want to add a vertical border glyph. */ | 2718 /* Decide whether we want to add a vertical border glyph. */ |
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 |
2729 window_matrix = w->current_matrix; | 2734 window_matrix = w->current_matrix; |
2730 | 2735 |