[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Emacs-diffs] Changes to emacs/src/buffer.c,v
From: |
Juanma Barranquero |
Subject: |
[Emacs-diffs] Changes to emacs/src/buffer.c,v |
Date: |
Sun, 17 Dec 2006 11:52:41 +0000 |
CVSROOT: /cvsroot/emacs
Module name: emacs
Changes by: Juanma Barranquero <lektu> 06/12/17 11:52:41
Index: buffer.c
===================================================================
RCS file: /cvsroot/emacs/emacs/src/buffer.c,v
retrieving revision 1.516
retrieving revision 1.517
diff -u -b -r1.516 -r1.517
--- buffer.c 11 Dec 2006 15:41:07 -0000 1.516
+++ buffer.c 17 Dec 2006 11:52:40 -0000 1.517
@@ -1331,15 +1331,16 @@
*/
DEFUN ("kill-buffer", Fkill_buffer, Skill_buffer, 1, 1, "bKill buffer: ",
doc: /* Kill the buffer BUFFER.
-The argument may be a buffer or may be the name of a buffer.
-An argument of nil means kill the current buffer.
+The argument may be a buffer or the name of a buffer.
+With a nil argument, kill the current buffer.
-Value is t if the buffer is actually killed, nil if user says no.
+Value is t if the buffer is actually killed, nil otherwise.
-The value of `kill-buffer-hook' (which may be local to that buffer),
-if not void, is a list of functions to be called, with no arguments,
-before the buffer is actually killed. The buffer to be killed is current
-when the hook functions are called.
+The functions in `kill-buffer-query-functions' are called with BUFFER as
+the current buffer. If any of them returns nil, the buffer is not killed.
+
+The hook `kill-buffer-hook' is run before the buffer is actually killed.
+The buffer being killed will be current while the hook is running.
Any processes that have this buffer as the `process-buffer' are killed
with SIGHUP. */)
@@ -6044,7 +6045,9 @@
The value t means to use hollow box cursor. See `cursor-type' for other
values. */);
DEFVAR_LISP ("kill-buffer-query-functions", &Vkill_buffer_query_functions,
- doc: /* List of functions called with no args to query before
killing a buffer. */);
+ doc: /* List of functions called with no args to query before
killing a buffer.
+The buffer being killed will be current while the functions are running.
+If any of them returns nil, the buffer is not killed. */);
Vkill_buffer_query_functions = Qnil;
DEFVAR_LISP ("change-major-mode-hook", &Vchange_major_mode_hook,
- [Emacs-diffs] Changes to emacs/src/buffer.c,v, Juanma Barranquero, 2006/12/10
- [Emacs-diffs] Changes to emacs/src/buffer.c,v, Juanma Barranquero, 2006/12/11
- [Emacs-diffs] Changes to emacs/src/buffer.c,v,
Juanma Barranquero <=
- [Emacs-diffs] Changes to emacs/src/buffer.c,v, Juanma Barranquero, 2006/12/18
- [Emacs-diffs] Changes to emacs/src/buffer.c,v, Juanma Barranquero, 2006/12/18
- [Emacs-diffs] Changes to emacs/src/buffer.c,v, Juanma Barranquero, 2006/12/19