kill-buffer has been replaced by delete-buffer. Use delete-buffer in preference to kill-buffer;
kill-buffer removes a buffer from the list of buffers, and discards all the text it contains. It takes one argument which is the name of the buffer to delete.
If you use the kill-buffer interactively and the target buffer is modified, kill-buffer asks for confirmation that you want to delete the specified buffer.
If you delete the current buffer, then dot is moved to one of the other buffers displayed on the screen. If there are no other buffers, then "main" is used (and created if necessary).
See also:
Kills the specified subprocess. The subprocess is killed by executing a delete process request, so exit handlers for the target process will not be executed.
This does not work on Windows 95 or Windows 98.
See also:
(kill-to-end-of-line repeat-count) ^K
Deletes characters forward from dot to, and including, the next end-of-line (or end of buffer if there is not an end of line). If dot is positioned at the end of a line, just the end-of-line character is deleted.
Text deleted by the ^K command is placed into Kill buffer. A ^K command normally erases the contents of Kill buffer first; subsequent ^Ks in an unbroken sequence append text Kill buffer. The number of lines killed is controlled by prefix-argument times repeat-count. If repeat-count is omitted, 1 is assumed.