emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] emacs-26 913c001: * lisp/files.el (write-file): Clarify th


From: Eli Zaretskii
Subject: [Emacs-diffs] emacs-26 913c001: * lisp/files.el (write-file): Clarify the doc string. (Bug#33339)
Date: Sun, 11 Nov 2018 11:18:49 -0500 (EST)

branch: emacs-26
commit 913c001f43350a70c8fc9d3eb846242eb63c9ae8
Author: Eli Zaretskii <address@hidden>
Commit: Eli Zaretskii <address@hidden>

    * lisp/files.el (write-file): Clarify the doc string.  (Bug#33339)
---
 lisp/files.el | 15 +++++++++------
 1 file changed, 9 insertions(+), 6 deletions(-)

diff --git a/lisp/files.el b/lisp/files.el
index 9a8ed64..eb09a7c 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -4246,12 +4246,15 @@ the old visited file has been renamed to the new name 
FILENAME."
   "Write current buffer into file FILENAME.
 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
-the default file name but in that directory.  You can also yank
-the default file name into the minibuffer to edit it, using 
\\<minibuffer-local-map>\\[next-history-element].
-
-If the buffer is not already visiting a file, the default file name
-for the output file is the buffer name.
+Interactively, prompt for FILENAME.
+If you specify just a directory name as FILENAME, that means to write
+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.
+
+You can also yank the file name into the minibuffer to edit it,
+using \\<minibuffer-local-map>\\[next-history-element].
 
 If optional second arg CONFIRM is non-nil, this function
 asks for confirmation before overwriting an existing file.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]