diff options
| author | Jeremy Bryant | 2023-11-30 23:14:46 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2023-12-01 10:33:20 +0200 |
| commit | f6a06ed6c5d9da12a7114dfea437bef77cc2d399 (patch) | |
| tree | fc6c737495144bbd496203f70fd2892041ab3954 | |
| parent | 4774a3abb4be3068e0308820c73b71c2a924fb21 (diff) | |
| download | emacs-f6a06ed6c5d9da12a7114dfea437bef77cc2d399.tar.gz emacs-f6a06ed6c5d9da12a7114dfea437bef77cc2d399.zip | |
Elisp manual: Mention 'write-region' for saving the buffer
* doc/emacs/files.texi (Save Commands): Mention
'write-region'. (Bug#67313)
| -rw-r--r-- | doc/emacs/files.texi | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 29cc22e7557..f0160c692da 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi | |||
| @@ -547,6 +547,10 @@ buffer name with the buffer's default directory (@pxref{File Names}). | |||
| 547 | to that major mode, in most cases. The command | 547 | to that major mode, in most cases. The command |
| 548 | @code{set-visited-file-name} also does this. @xref{Choosing Modes}. | 548 | @code{set-visited-file-name} also does this. @xref{Choosing Modes}. |
| 549 | 549 | ||
| 550 | If you wish to save the current buffer to a different file without | ||
| 551 | visiting it, use @code{mark-whole-buffer} (@kbd C-x h), then @kbd{M-x | ||
| 552 | write-region} (@pxref{Misc File Ops} | ||
| 553 | |||
| 550 | If Emacs is about to save a file and sees that the date of the latest | 554 | If Emacs is about to save a file and sees that the date of the latest |
| 551 | version on disk does not match what Emacs last read or wrote, Emacs | 555 | version on disk does not match what Emacs last read or wrote, Emacs |
| 552 | notifies you of this fact, because it probably indicates a problem caused | 556 | notifies you of this fact, because it probably indicates a problem caused |