aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJeremy Bryant2023-11-30 23:14:46 +0000
committerEli Zaretskii2023-12-01 10:33:20 +0200
commitf6a06ed6c5d9da12a7114dfea437bef77cc2d399 (patch)
treefc6c737495144bbd496203f70fd2892041ab3954
parent4774a3abb4be3068e0308820c73b71c2a924fb21 (diff)
downloademacs-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.texi4
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}).
547to that major mode, in most cases. The command 547to 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
551visiting it, use @code{mark-whole-buffer} (@kbd C-x h), then @kbd{M-x
552write-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
551version on disk does not match what Emacs last read or wrote, Emacs 555version on disk does not match what Emacs last read or wrote, Emacs
552notifies you of this fact, because it probably indicates a problem caused 556notifies you of this fact, because it probably indicates a problem caused