464 |
@kindex C-x C-w |
@kindex C-x C-w |
465 |
@findex write-file |
@findex write-file |
466 |
If you wish to mark the buffer as visiting a different file and save it |
If you wish to mark the buffer as visiting a different file and save it |
467 |
right away, use @kbd{C-x C-w} (@code{write-file}). It is precisely |
right away, use @kbd{C-x C-w} (@code{write-file}). It is |
468 |
equivalent to @code{set-visited-file-name} followed by @kbd{C-x C-s}. |
equivalent to @code{set-visited-file-name} followed by @kbd{C-x C-s} |
469 |
|
(except that @kbd{C-x C-w} asks for confirmation if the file exists). |
470 |
@kbd{C-x C-s} used on a buffer that is not visiting a file has the |
@kbd{C-x C-s} used on a buffer that is not visiting a file has the |
471 |
same effect as @kbd{C-x C-w}; that is, it reads a file name, marks the |
same effect as @kbd{C-x C-w}; that is, it reads a file name, marks the |
472 |
buffer as visiting that file, and saves it there. The default file name in |
buffer as visiting that file, and saves it there. The default file name in |