From 9948db79ddd9eaa693443a63c956074d3da72256 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Mon, 26 Mar 2001 17:09:00 +0000 Subject: [PATCH] (syms_of_buffer): Doc fix. --- src/ChangeLog | 6 ++++++ src/buffer.c | 29 ++++++++++++++++++++++------- 2 files changed, 28 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 07463e8e178..de5b1b1d89c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2001-03-26 Eli Zaretskii + + * print.c (Fprin1, Fprin1_to_string, Fprinc, Fprint): Doc fix. + + * buffer.c (syms_of_buffer): Doc fix. + 2001-03-26 Gerd Moellmann * xfaces.c (x_update_menu_appearance): Use local variable 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."); Qnil, "Display table that controls display of the contents of current buffer.\n\ Automatically becomes buffer-local when set in any fashion.\n\ +\n\ +If this variable is nil, the value of `standard-display-table' is used.\n\ +Each window can have its own, overriding display table, see\n\ +`set-window-display-table' and `window-display-table'. +\n\ The display table is a char-table created with `make-display-table'.\n\ -The ordinary char-table elements control how to display each possible text\n\ -character. Each value should be a vector of characters or nil;\n\ -nil means display the character in the default fashion.\n\ -There are six extra slots to control the display of\n\ +A char-table is an array indexed by character codes. Normal array\n\ +primitives `aref' and `aset' can be used to access elements of a char-table.\n\ +\n\ +Each of the char-table elements control how to display the corresponding\n\ +text character: the element at index C in the table says how to display\n\ +the character whose code is C. Each element should be a vector of\n\ +characters or nil. nil means display the character in the default fashion;\n\ +otherwise, the characters from the vector are delivered to the screen\n\ +instead of the original character.\n\ +\n\ +For example, (aset buffer-display-table ?X ?Y) will cause Emacs to display\n\ +a capital Y instead of each X character.\n\ +\n\ +In addition, a char-table has six extra slots to control the display of:\n\ +\n\ the end of a truncated screen line (extra-slot 0, a single character);\n\ the end of a continued line (extra-slot 1, a single character);\n\ 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\ a vector of characters);\n\ the character used to draw the border between side-by-side windows\n\ (extra-slot 5, a single character).\n\ -See also the functions `display-table-slot' and `set-display-table-slot'.\n\ -If this variable is nil, the value of `standard-display-table' is used.\n\ -Each window can have its own, overriding display table."); +\n\ +See also the functions `display-table-slot' and `set-display-table-slot'."); #endif DEFVAR_PER_BUFFER ("buffer-display-table", ¤t_buffer->display_table, Qnil, 0); -- 2.39.2