aboutsummaryrefslogtreecommitdiffstats
path: root/lispref/files.texi
diff options
context:
space:
mode:
authorRichard M. Stallman1999-12-08 19:01:55 +0000
committerRichard M. Stallman1999-12-08 19:01:55 +0000
commit77ba49d8a6dc45e7d62f80d8031dbb5adfa87fef (patch)
treeff7f1c44980168763d036f83b4f5f85db52a2d05 /lispref/files.texi
parentfcad24639f1885f372d9f262bf36201f9841dfb5 (diff)
downloademacs-77ba49d8a6dc45e7d62f80d8031dbb5adfa87fef.tar.gz
emacs-77ba49d8a6dc45e7d62f80d8031dbb5adfa87fef.zip
*** empty log message ***
Diffstat (limited to 'lispref/files.texi')
-rw-r--r--lispref/files.texi22
1 files changed, 14 insertions, 8 deletions
diff --git a/lispref/files.texi b/lispref/files.texi
index 369c3d090c9..c88a20c0763 100644
--- a/lispref/files.texi
+++ b/lispref/files.texi
@@ -322,19 +322,25 @@ version of the file before saving it.
322@end itemize 322@end itemize
323@end deffn 323@end deffn
324 324
325@deffn Command save-some-buffers &optional save-silently-p exiting 325@deffn Command save-some-buffers &optional save-silently-p pred
326This command saves some modified file-visiting buffers. Normally it 326This command saves some modified file-visiting buffers. Normally it
327asks the user about each buffer. But if @var{save-silently-p} is 327asks the user about each buffer. But if @var{save-silently-p} is
328non-@code{nil}, it saves all the file-visiting buffers without querying 328non-@code{nil}, it saves all the file-visiting buffers without querying
329the user. 329the user.
330 330
331The optional @var{exiting} argument, if non-@code{nil}, requests this 331The optional @var{pred} argument controls which buffers to ask about.
332function to offer also to save certain other buffers that are not 332If it is @code{nil}, that means to ask only about file-visiting buffers.
333visiting files. These are buffers that have a non-@code{nil} 333If it is @code{t}, that means also offer to save certain other non-file
334buffer-local value of @code{buffer-offer-save}. (A user who says @samp{yes} to 334buffers---those that have a non-@code{nil} buffer-local value of
335saving one of these is asked to specify a file name to use.) The 335@code{buffer-offer-save}. (A user who says @samp{yes} to saving a
336@code{save-buffers-kill-emacs} function passes a non-@code{nil} value 336non-file buffer is asked to specify the file name to use.) The
337for this argument. 337@code{save-buffers-kill-emacs} function passes the value @code{t} for
338@var{pred}.
339
340If @var{pred} is neither @code{t} nor @code{nil}, then it should be
341a function of no arguments. It will be called in each buffer to decide
342whether to offer to save that buffer. If it returns a non-@code{nil}
343value in a certain buffer, that means do offer to save that buffer.
338@end deffn 344@end deffn
339 345
340@deffn Command write-file filename &optional confirm 346@deffn Command write-file filename &optional confirm