# save-some-buffers(2)

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

## NAME

save-some-buffers - Save contents of all changed buffers to file (with query)

## SYNOPSIS

n save-some-buffers

## DESCRIPTION

save-some-buffers cycles through all visible buffers (buffers without mode hide(2m) set) and attempts to save all modified ones, writing the contents back to the file from where it was read. For each buffer that has been modified the user is prompted to save the buffer, the following responses can be given:

y

Saves the buffer and moves to the next modified buffer.

n

Does not save the buffer and moves to the next modified buffer. a Saves all remaining modified buffers including the current one without further prompting. o Skips all remaining buffers including the current one. g Display the buffer and aborts the command.

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

0x01

Enables the user prompt before the buffer is saved (default). If this flag is not supplied then all modified visible buffers will be written.

## SEE ALSO

save-buffer(2), save-buffers-exit-emacs(2), write-buffer(2), hide(2m).

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

</HMTL>