aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c29
1 files changed, 22 insertions, 7 deletions
diff --git a/src/buffer.c b/src/buffer.c
index 0dd65bf7f67..a8240bafcc9 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -5272,11 +5272,27 @@ Automatically becomes buffer-local when set in any fashion.");
5272 Qnil, 5272 Qnil,
5273 "Display table that controls display of the contents of current buffer.\n\ 5273 "Display table that controls display of the contents of current buffer.\n\
5274Automatically becomes buffer-local when set in any fashion.\n\ 5274Automatically becomes buffer-local when set in any fashion.\n\
5275\n\
5276If this variable is nil, the value of `standard-display-table' is used.\n\
5277Each window can have its own, overriding display table, see\n\
5278`set-window-display-table' and `window-display-table'.
5279\n\
5275The display table is a char-table created with `make-display-table'.\n\ 5280The display table is a char-table created with `make-display-table'.\n\
5276The ordinary char-table elements control how to display each possible text\n\ 5281A char-table is an array indexed by character codes. Normal array\n\
5277character. Each value should be a vector of characters or nil;\n\ 5282primitives `aref' and `aset' can be used to access elements of a char-table.\n\
5278nil means display the character in the default fashion.\n\ 5283\n\
5279There are six extra slots to control the display of\n\ 5284Each of the char-table elements control how to display the corresponding\n\
5285text character: the element at index C in the table says how to display\n\
5286the character whose code is C. Each element should be a vector of\n\
5287characters or nil. nil means display the character in the default fashion;\n\
5288otherwise, the characters from the vector are delivered to the screen\n\
5289instead of the original character.\n\
5290\n\
5291For example, (aset buffer-display-table ?X ?Y) will cause Emacs to display\n\
5292a capital Y instead of each X character.\n\
5293\n\
5294In addition, a char-table has six extra slots to control the display of:\n\
5295\n\
5280 the end of a truncated screen line (extra-slot 0, a single character);\n\ 5296 the end of a truncated screen line (extra-slot 0, a single character);\n\
5281 the end of a continued line (extra-slot 1, a single character);\n\ 5297 the end of a continued line (extra-slot 1, a single character);\n\
5282 the escape character used to display character codes in octal\n\ 5298 the escape character used to display character codes in octal\n\
@@ -5287,9 +5303,8 @@ There are six extra slots to control the display of\n\
5287 a vector of characters);\n\ 5303 a vector of characters);\n\
5288 the character used to draw the border between side-by-side windows\n\ 5304 the character used to draw the border between side-by-side windows\n\
5289 (extra-slot 5, a single character).\n\ 5305 (extra-slot 5, a single character).\n\
5290See also the functions `display-table-slot' and `set-display-table-slot'.\n\ 5306\n\
5291If this variable is nil, the value of `standard-display-table' is used.\n\ 5307See also the functions `display-table-slot' and `set-display-table-slot'.");
5292Each window can have its own, overriding display table.");
5293#endif 5308#endif
5294 DEFVAR_PER_BUFFER ("buffer-display-table", &current_buffer->display_table, 5309 DEFVAR_PER_BUFFER ("buffer-display-table", &current_buffer->display_table,
5295 Qnil, 0); 5310 Qnil, 0);