* lisp/files.el (write-file): Clarify the doc string. (Bug#33339)

This commit is contained in:
Eli Zaretskii 2018-11-11 18:17:51 +02:00
parent d614b84fa4
commit 913c001f43

View file

@ -4246,12 +4246,15 @@ the old visited file has been renamed to the new name FILENAME."
"Write current buffer into file FILENAME. "Write current buffer into file FILENAME.
This makes the buffer visit that file, and marks it as not modified. This makes the buffer visit that file, and marks it as not modified.
If you specify just a directory name as FILENAME, that means to use Interactively, prompt for FILENAME.
the default file name but in that directory. You can also yank If you specify just a directory name as FILENAME, that means to write
the default file name into the minibuffer to edit it, using \\<minibuffer-local-map>\\[next-history-element]. to a file in that directory. In this case, the base name of the file
is the same as that of the file visited in the buffer, or the buffer
name sans leading directories, if any, if the buffer is not already
visiting a file.
If the buffer is not already visiting a file, the default file name You can also yank the file name into the minibuffer to edit it,
for the output file is the buffer name. using \\<minibuffer-local-map>\\[next-history-element].
If optional second arg CONFIRM is non-nil, this function If optional second arg CONFIRM is non-nil, this function
asks for confirmation before overwriting an existing file. asks for confirmation before overwriting an existing file.