aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiles Bader2005-06-20 10:45:31 +0000
committerMiles Bader2005-06-20 10:45:31 +0000
commitb4e49aee845c2666cea162e3fc83d977207392b9 (patch)
tree3e8f13584c3bc95bc2172a501ca4c5f920329872
parent01ba96624b41bc15d40ccb0a7095d081f0ee0e4d (diff)
downloademacs-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.
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/faces.el7
-rw-r--r--man/ChangeLog4
-rw-r--r--man/display.texi6
-rw-r--r--src/ChangeLog11
-rw-r--r--src/dispextern.h1
-rw-r--r--src/dispnew.c13
-rw-r--r--src/xfaces.c5
8 files changed, 45 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 74bbbf70ccc..1377de8b357 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12005-06-20 Miles Bader <miles@gnu.org>
2
3 * faces.el (vertical-divider): New face.
4
12005-06-20 Juanma Barranquero <lekktu@gmail.com> 52005-06-20 Juanma Barranquero <lekktu@gmail.com>
2 6
3 * simple.el (kill-whole-line): Doc fix. 7 * simple.el (kill-whole-line): Doc fix.
diff --git a/lisp/faces.el b/lisp/faces.el
index dc94beb4aa6..2942438a32a 100644
--- a/lisp/faces.el
+++ b/lisp/faces.el
@@ -1869,6 +1869,13 @@ created."
1869 :group 'modeline 1869 :group 'modeline
1870 :group 'basic-faces) 1870 :group 'basic-faces)
1871 1871
1872(defface vertical-divider
1873 '((default :inherit mode-line-inactive))
1874 "Face used for vertical window dividers on ttys."
1875 :version "22.1"
1876 :group 'modeline
1877 :group 'basic-faces)
1878
1872;; Make `modeline' an alias for `mode-line', for compatibility. 1879;; Make `modeline' an alias for `mode-line', for compatibility.
1873(put 'modeline 'face-alias 'mode-line) 1880(put 'modeline 'face-alias 'mode-line)
1874(put 'modeline-inactive 'face-alias 'mode-line-inactive) 1881(put 'modeline-inactive 'face-alias 'mode-line-inactive)
diff --git a/man/ChangeLog b/man/ChangeLog
index 82d78054ec3..33541408e4b 100644
--- a/man/ChangeLog
+++ b/man/ChangeLog
@@ -1,3 +1,7 @@
12005-06-20 Miles Bader <miles@gnu.org>
2
3 * display.texi (Faces): Add `vertical-divider'.
4
12005-06-17 Richard M. Stallman <rms@gnu.org> 52005-06-17 Richard M. Stallman <rms@gnu.org>
2 6
3 * text.texi (Adaptive Fill): Minor clarification. 7 * text.texi (Adaptive Fill): Minor clarification.
diff --git a/man/display.texi b/man/display.texi
index 4276209326d..858a33f9ffe 100644
--- a/man/display.texi
+++ b/man/display.texi
@@ -1,5 +1,5 @@
1@c This is part of the Emacs manual. 1@c This is part of the Emacs manual.
2@c Copyright (C) 1985, 86, 87, 93, 94, 95, 1997, 2000, 2001, 2002 2@c Copyright (C) 1985, 86, 87, 93, 94, 95, 1997, 2000, 2001, 2002, 2005
3@c Free Software Foundation, Inc. 3@c Free Software Foundation, Inc.
4@c See file emacs.texi for copying conditions. 4@c See file emacs.texi for copying conditions.
5@node Display, Search, Registers, Top 5@node Display, Search, Registers, Top
@@ -113,6 +113,10 @@ in that face affect mode lines in all windows.
113@item header-line 113@item header-line
114Similar to @code{mode-line} for a window's header line. Most modes 114Similar to @code{mode-line} for a window's header line. Most modes
115don't use the header line, but the Info mode does. 115don't use the header line, but the Info mode does.
116@item vertical-divider
117This face is used for the vertical divider between windows on
118character terminals. By default this face inherits from the
119@code{mode-line-inactive} face.
116@item minibuffer-prompt 120@item minibuffer-prompt
117This face is used for the prompt strings displayed in the minibuffer. 121This face is used for the prompt strings displayed in the minibuffer.
118@item highlight 122@item highlight
diff --git a/src/ChangeLog b/src/ChangeLog
index 12e52237e9b..ab060453f64 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,14 @@
12005-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
12005-06-17 Richard M. Stallman <rms@gnu.org> 122005-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
325Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe; 325Lisp_Object Qdefault, Qtool_bar, Qregion, Qfringe;
326Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu; 326Lisp_Object Qheader_line, Qscroll_bar, Qcursor, Qborder, Qmouse, Qmenu;
327Lisp_Object Qmode_line_inactive; 327Lisp_Object Qmode_line_inactive, Qvertical_divider;
328extern Lisp_Object Qmode_line; 328extern 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");