comparison lispref/files.texi @ 26770:2d8554ed8748

*** empty log message ***
author Richard M. Stallman <rms@gnu.org>
date Wed, 08 Dec 1999 19:01:55 +0000
parents ef5e7bbe6f19
children f6b52258db6a
comparison
equal deleted inserted replaced
26769:6059a830d589 26770:2d8554ed8748
320 @code{save-buffer} function unconditionally backs up the previous 320 @code{save-buffer} function unconditionally backs up the previous
321 version of the file before saving it. 321 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
326 This command saves some modified file-visiting buffers. Normally it 326 This command saves some modified file-visiting buffers. Normally it
327 asks the user about each buffer. But if @var{save-silently-p} is 327 asks the user about each buffer. But if @var{save-silently-p} is
328 non-@code{nil}, it saves all the file-visiting buffers without querying 328 non-@code{nil}, it saves all the file-visiting buffers without querying
329 the user. 329 the user.
330 330
331 The optional @var{exiting} argument, if non-@code{nil}, requests this 331 The optional @var{pred} argument controls which buffers to ask about.
332 function to offer also to save certain other buffers that are not 332 If it is @code{nil}, that means to ask only about file-visiting buffers.
333 visiting files. These are buffers that have a non-@code{nil} 333 If it is @code{t}, that means also offer to save certain other non-file
334 buffer-local value of @code{buffer-offer-save}. (A user who says @samp{yes} to 334 buffers---those that have a non-@code{nil} buffer-local value of
335 saving 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 336 non-file buffer is asked to specify the file name to use.) The
337 for this argument. 337 @code{save-buffers-kill-emacs} function passes the value @code{t} for
338 @var{pred}.
339
340 If @var{pred} is neither @code{t} nor @code{nil}, then it should be
341 a function of no arguments. It will be called in each buffer to decide
342 whether to offer to save that buffer. If it returns a non-@code{nil}
343 value 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
341 This function writes the current buffer into file @var{filename}, makes 347 This function writes the current buffer into file @var{filename}, makes
342 the buffer visit that file, and marks it not modified. Then it renames 348 the buffer visit that file, and marks it not modified. Then it renames