# delete-buffer(2)

[Home] [Commands] [Variables] [Macro-Dev] [Glossary]

## NAME

delete-buffer - Delete a buffer

## SYNOPSIS

n delete-buffer "buffer-name" (C-x k)

## DESCRIPTION

delete-buffer disposes of buffer buffer-name in the editor and reclaim the memory. This does not delete the file that the buffer was read from.

If the buffer has been edited and its name does not start with a '*' then the user is prompted as to whether the changes should be discarded. Also if the buffer has an active process running in it then confirmation is sort from the user before the process is killed.

The argument n can be used to change the default behavior of delete-buffer described above, n is a bit based flag where:-

0x01

Enables loss of work checks (default). These include a check that the buffer has not been modified, if so the user is prompted. Also if a process is running then user must confirm that the process can be killed. If this flag is not supplied then the buffer is killed without any user prompts (useful in macros).

## SEE ALSO

next-buffer(2).

(c) Copyright JASSPA 2009
Last Modified: 2009/08/29
Generated On: 2009/10/12

</HMTL>