aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJuanma Barranquero2006-12-17 11:54:10 +0000
committerJuanma Barranquero2006-12-17 11:54:10 +0000
commitf6e22881e2e567fea51226a35d4e195fcad0381e (patch)
tree532a305bfe41f94b72916bc7f842f6ba57a09fc8 /src
parent6110bf7c07b0845a5be5e824fdeeddab21c89775 (diff)
downloademacs-f6e22881e2e567fea51226a35d4e195fcad0381e.tar.gz
emacs-f6e22881e2e567fea51226a35d4e195fcad0381e.zip
(Fkill_buffer): Doc fix.
(syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog5
-rw-r--r--src/buffer.c23
2 files changed, 18 insertions, 10 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 4dfd454fa86..473ebe25af8 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,8 @@
12006-12-17 Juanma Barranquero <lekktu@gmail.com>
2
3 * buffer.c (Fkill_buffer): Doc fix.
4 (syms_of_buffer) <kill-buffer-query-functions>: Doc fix.
5
12006-12-16 Juanma Barranquero <lekktu@gmail.com> 62006-12-16 Juanma Barranquero <lekktu@gmail.com>
2 7
3 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols. 8 * minibuf.c (Ftry_completion): Check that obarray buckets are symbols.
diff --git a/src/buffer.c b/src/buffer.c
index 18bed7a865e..452f13a605a 100644
--- a/src/buffer.c
+++ b/src/buffer.c
@@ -1331,15 +1331,16 @@ See `kill-buffer'."
1331 */ 1331 */
1332DEFUN ("kill-buffer", Fkill_buffer, Skill_buffer, 1, 1, "bKill buffer: ", 1332DEFUN ("kill-buffer", Fkill_buffer, Skill_buffer, 1, 1, "bKill buffer: ",
1333 doc: /* Kill the buffer BUFFER. 1333 doc: /* Kill the buffer BUFFER.
1334The argument may be a buffer or may be the name of a buffer. 1334The argument may be a buffer or the name of a buffer.
1335An argument of nil means kill the current buffer. 1335With a nil argument, kill the current buffer.
1336 1336
1337Value is t if the buffer is actually killed, nil if user says no. 1337Value is t if the buffer is actually killed, nil otherwise.
1338 1338
1339The value of `kill-buffer-hook' (which may be local to that buffer), 1339The functions in `kill-buffer-query-functions' are called with BUFFER as
1340if not void, is a list of functions to be called, with no arguments, 1340the current buffer. If any of them returns nil, the buffer is not killed.
1341before the buffer is actually killed. The buffer to be killed is current 1341
1342when the hook functions are called. 1342The hook `kill-buffer-hook' is run before the buffer is actually killed.
1343The buffer being killed will be current while the hook is running.
1343 1344
1344Any processes that have this buffer as the `process-buffer' are killed 1345Any processes that have this buffer as the `process-buffer' are killed
1345with SIGHUP. */) 1346with SIGHUP. */)
@@ -6015,7 +6016,7 @@ is a member of the list. */);
6015 Vinhibit_read_only = Qnil; 6016 Vinhibit_read_only = Qnil;
6016 6017
6017 DEFVAR_PER_BUFFER ("cursor-type", &current_buffer->cursor_type, Qnil, 6018 DEFVAR_PER_BUFFER ("cursor-type", &current_buffer->cursor_type, Qnil,
6018 doc: /* Cursor to use when this buffer is in the selected window. 6019 doc: /* Cursor to use when this buffer is in the selected window.
6019Values are interpreted as follows: 6020Values are interpreted as follows:
6020 6021
6021 t use the cursor specified for the frame 6022 t use the cursor specified for the frame
@@ -6040,11 +6041,13 @@ to the default frame line height. A value of nil means add no extra space. */)
6040 6041
6041 DEFVAR_PER_BUFFER ("cursor-in-non-selected-windows", 6042 DEFVAR_PER_BUFFER ("cursor-in-non-selected-windows",
6042 &current_buffer->cursor_in_non_selected_windows, Qnil, 6043 &current_buffer->cursor_in_non_selected_windows, Qnil,
6043 doc: /* *Cursor type to display in non-selected windows. 6044 doc: /* *Cursor type to display in non-selected windows.
6044The value t means to use hollow box cursor. See `cursor-type' for other values. */); 6045The value t means to use hollow box cursor. See `cursor-type' for other values. */);
6045 6046
6046 DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions, 6047 DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions,
6047 doc: /* List of functions called with no args to query before killing a buffer. */); 6048 doc: /* List of functions called with no args to query before killing a buffer.
6049The buffer being killed will be current while the functions are running.
6050If any of them returns nil, the buffer is not killed. */);
6048 Vkill_buffer_query_functions = Qnil; 6051 Vkill_buffer_query_functions = Qnil;
6049 6052
6050 DEFVAR_LISP ("change-major-mode-hook", &Vchange_major_mode_hook, 6053 DEFVAR_LISP ("change-major-mode-hook", &Vchange_major_mode_hook,