changeset 8919:644f69fe736e

Add a new element to display tables controlling side-by-side window borders. * buffer.c (syms_of_buffer): Update doc string for `buffer-display-table'. * disptab.h (DISP_TABLE_SIZE): Bump to 262. (DISP_BORDER_GLYPH): New accessor macro. * xdisp.c (display_text_line): Consult the display table when building side-by-side window borders.
author Jim Blandy <jimb@redhat.com>
date Mon, 19 Sep 1994 17:28:37 +0000
parents 1be99ca9da45
children 45e6d5476e7f
files src/buffer.c src/disptab.h src/xdisp.c
diffstat 3 files changed, 10 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/src/buffer.c	Mon Sep 19 17:17:02 1994 +0000
+++ b/src/buffer.c	Mon Sep 19 17:28:37 1994 +0000
@@ -2776,7 +2776,7 @@
 The first 256 elements control how to display each possible text character.\n\
 Each value should be a vector of characters or nil;\n\
 nil means display the character in the default fashion.\n\
-The remaining five elements control the display of\n\
+The remaining six elements control the display of\n\
   the end of a truncated screen line (element 256, a single character);\n\
   the end of a continued line (element 257, a single character);\n\
   the escape character used to display character codes in octal\n\
@@ -2784,7 +2784,9 @@
   the character used as an arrow for control characters (element 259,\n\
     a single character);\n\
   the decoration indicating the presence of invisible lines (element 260,\n\
-    a vector of characters).\n\
+    a vector of characters);\n\
+  the character used to draw the border between side-by-side windows\n\
+    (element 261, a single character).;\n\
 If this variable is nil, the value of `standard-display-table' is used.\n\
 Each window can have its own, overriding display table.");
 #endif
--- a/src/disptab.h	Mon Sep 19 17:17:02 1994 +0000
+++ b/src/disptab.h	Mon Sep 19 17:28:37 1994 +0000
@@ -19,12 +19,13 @@
 
 /* Access the slots of a display-table, according to their purpose.  */
 
-#define DISP_TABLE_SIZE 261
+#define DISP_TABLE_SIZE 262
 #define DISP_TRUNC_GLYPH(dp) ((dp)->contents[256])
 #define DISP_CONTINUE_GLYPH(dp) ((dp)->contents[257])
 #define DISP_ESCAPE_GLYPH(dp) ((dp)->contents[258])
 #define DISP_CTRL_GLYPH(dp) ((dp)->contents[259])
 #define DISP_INVIS_VECTOR(dp) ((dp)->contents[260])
+#define DISP_BORDER_GLYPH(dp) ((dp)->contents[261])
 #define DISP_CHAR_VECTOR(dp, c) ((dp)->contents[c])
 
 extern struct Lisp_Vector *window_display_table ();
--- a/src/xdisp.c	Mon Sep 19 17:17:02 1994 +0000
+++ b/src/xdisp.c	Mon Sep 19 17:28:37 1994 +0000
@@ -2504,7 +2504,10 @@
          them when the scroll bar windows are flickering around to be
          reconfigured.  */
       *p1++ = (FRAME_HAS_VERTICAL_SCROLL_BARS (f)
-	       ? ' ' : '|');
+	       ? ' '
+	       : (dp && INTEGERP (DISP_BORDER_GLYPH (dp))
+		  ? DISP_BORDER_GLYPH (dp)
+		  : '|'));
     }
   desired_glyphs->used[vpos] = max (desired_glyphs->used[vpos],
 				   p1 - desired_glyphs->glyphs[vpos]);