aboutsummaryrefslogtreecommitdiffstats
path: root/src/buffer.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/buffer.c')
-rw-r--r--src/buffer.c37
1 files changed, 20 insertions, 17 deletions
diff --git a/src/buffer.c b/src/buffer.c
index e9c3c47a959..6e3b39ad2bb 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1332,15 +1332,16 @@ See `kill-buffer'."
1332 */ 1332 */
1333DEFUN ("kill-buffer", Fkill_buffer, Skill_buffer, 1, 1, "bKill buffer: ", 1333DEFUN ("kill-buffer", Fkill_buffer, Skill_buffer, 1, 1, "bKill buffer: ",
1334 doc: /* Kill the buffer BUFFER. 1334 doc: /* Kill the buffer BUFFER.
1335The argument may be a buffer or may be the name of a buffer. 1335The argument may be a buffer or the name of a buffer.
1336An argument of nil means kill the current buffer. 1336With a nil argument, kill the current buffer.
1337 1337
1338Value is t if the buffer is actually killed, nil if user says no. 1338Value is t if the buffer is actually killed, nil otherwise.
1339 1339
1340The value of `kill-buffer-hook' (which may be local to that buffer), 1340The functions in `kill-buffer-query-functions' are called with BUFFER as
1341if not void, is a list of functions to be called, with no arguments, 1341the current buffer. If any of them returns nil, the buffer is not killed.
1342before the buffer is actually killed. The buffer to be killed is current 1342
1343when the hook functions are called. 1343The hook `kill-buffer-hook' is run before the buffer is actually killed.
1344The buffer being killed will be current while the hook is running.
1344 1345
1345Any processes that have this buffer as the `process-buffer' are killed 1346Any processes that have this buffer as the `process-buffer' are killed
1346with SIGHUP. */) 1347with SIGHUP. */)
@@ -5371,8 +5372,8 @@ This is the same as (default-value 'fill-column). */);
5371This is the same as (default-value 'left-margin). */); 5372This is the same as (default-value 'left-margin). */);
5372 5373
5373 DEFVAR_LISP_NOPRO ("default-tab-width", 5374 DEFVAR_LISP_NOPRO ("default-tab-width",
5374 &buffer_defaults.tab_width, 5375 &buffer_defaults.tab_width,
5375 doc: /* Default value of `tab-width' for buffers that do not override it. 5376 doc: /* Default value of `tab-width' for buffers that do not override it.
5376This is the same as (default-value 'tab-width). */); 5377This is the same as (default-value 'tab-width). */);
5377 5378
5378 DEFVAR_LISP_NOPRO ("default-case-fold-search", 5379 DEFVAR_LISP_NOPRO ("default-case-fold-search",
@@ -5694,9 +5695,9 @@ primitives `aref' and `aset' can be used to access elements of a char-table.
5694Each of the char-table elements control how to display the corresponding 5695Each of the char-table elements control how to display the corresponding
5695text character: the element at index C in the table says how to display 5696text character: the element at index C in the table says how to display
5696the character whose code is C. Each element should be a vector of 5697the character whose code is C. Each element should be a vector of
5697characters or nil. nil means display the character in the default fashion; 5698characters or nil. The value nil means display the character in the
5698otherwise, the characters from the vector are delivered to the screen 5699default fashion; otherwise, the characters from the vector are delivered
5699instead of the original character. 5700to the screen instead of the original character.
5700 5701
5701For example, (aset buffer-display-table ?X ?Y) will cause Emacs to display 5702For example, (aset buffer-display-table ?X ?Y) will cause Emacs to display
5702a capital Y instead of each X character. 5703a capital Y instead of each X character.
@@ -5827,7 +5828,7 @@ cursor type. */);
5827 &current_buffer->scroll_up_aggressively, Qnil, 5828 &current_buffer->scroll_up_aggressively, Qnil,
5828 doc: /* How far to scroll windows upward. 5829 doc: /* How far to scroll windows upward.
5829If you move point off the bottom, the window scrolls automatically. 5830If you move point off the bottom, the window scrolls automatically.
5830This variable controls how far it scrolls. nil, the default, 5831This variable controls how far it scrolls. The value nil, the default,
5831means scroll to center point. A fraction means scroll to put point 5832means scroll to center point. A fraction means scroll to put point
5832that fraction of the window's height from the bottom of the window. 5833that fraction of the window's height from the bottom of the window.
5833When the value is 0.0, point goes at the bottom line, which in the simple 5834When the value is 0.0, point goes at the bottom line, which in the simple
@@ -5840,7 +5841,7 @@ between 0.0 and 1.0, inclusive. */);
5840 &current_buffer->scroll_down_aggressively, Qnil, 5841 &current_buffer->scroll_down_aggressively, Qnil,
5841 doc: /* How far to scroll windows downward. 5842 doc: /* How far to scroll windows downward.
5842If you move point off the top, the window scrolls automatically. 5843If you move point off the top, the window scrolls automatically.
5843This variable controls how far it scrolls. nil, the default, 5844This variable controls how far it scrolls. The value nil, the default,
5844means scroll to center point. A fraction means scroll to put point 5845means scroll to center point. A fraction means scroll to put point
5845that fraction of the window's height from the top of the window. 5846that fraction of the window's height from the top of the window.
5846When the value is 0.0, point goes at the top line, which in the simple 5847When the value is 0.0, point goes at the top line, which in the simple
@@ -6031,7 +6032,7 @@ is a member of the list. */);
6031 Vinhibit_read_only = Qnil; 6032 Vinhibit_read_only = Qnil;
6032 6033
6033 DEFVAR_PER_BUFFER ("cursor-type", &current_buffer->cursor_type, Qnil, 6034 DEFVAR_PER_BUFFER ("cursor-type", &current_buffer->cursor_type, Qnil,
6034 doc: /* Cursor to use when this buffer is in the selected window. 6035 doc: /* Cursor to use when this buffer is in the selected window.
6035Values are interpreted as follows: 6036Values are interpreted as follows:
6036 6037
6037 t use the cursor specified for the frame 6038 t use the cursor specified for the frame
@@ -6056,11 +6057,13 @@ to the default frame line height. A value of nil means add no extra space. */)
6056 6057
6057 DEFVAR_PER_BUFFER ("cursor-in-non-selected-windows", 6058 DEFVAR_PER_BUFFER ("cursor-in-non-selected-windows",
6058 &current_buffer->cursor_in_non_selected_windows, Qnil, 6059 &current_buffer->cursor_in_non_selected_windows, Qnil,
6059 doc: /* *Cursor type to display in non-selected windows. 6060 doc: /* *Cursor type to display in non-selected windows.
6060The value t means to use hollow box cursor. See `cursor-type' for other values. */); 6061The value t means to use hollow box cursor. See `cursor-type' for other values. */);
6061 6062
6062 DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions, 6063 DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions,
6063 doc: /* List of functions called with no args to query before killing a buffer. */); 6064 doc: /* List of functions called with no args to query before killing a buffer.
6065The buffer being killed will be current while the functions are running.
6066If any of them returns nil, the buffer is not killed. */);
6064 Vkill_buffer_query_functions = Qnil; 6067 Vkill_buffer_query_functions = Qnil;
6065 6068
6066 DEFVAR_LISP ("change-major-mode-hook", &Vchange_major_mode_hook, 6069 DEFVAR_LISP ("change-major-mode-hook", &Vchange_major_mode_hook,