# delete-some-buffers(2)

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

## NAME

delete-some-buffers - Delete buffers with query

## SYNOPSIS

n delete-some-buffers

## DESCRIPTION

delete-some-buffers cycles through all visible buffers (buffers without mode hide(2m) set) and prompts the user [y/n] as to whether the buffer should be deleted. A y response deletes the buffer, a n response retains the buffer.

If a y response is given, 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-some-buffers described above, n is a bit based flag where:-

0x01

Enables all checks (default). These include the initial y/n prompt on each buffer, the buffer has not been modified check, 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 all visible buffers are killed without any user prompts (useful in macros).

## SEE ALSO

delete-buffer(2), next-buffer(2), hide(2m).

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

</HMTL>