emacs-diffs
[Top][All Lists]
Advanced

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

emacs-29 f6a06ed6c5d 1/2: Elisp manual: Mention 'write-region' for savin


From: Eli Zaretskii
Subject: emacs-29 f6a06ed6c5d 1/2: Elisp manual: Mention 'write-region' for saving the buffer
Date: Fri, 1 Dec 2023 03:37:32 -0500 (EST)

branch: emacs-29
commit f6a06ed6c5d9da12a7114dfea437bef77cc2d399
Author: Jeremy Bryant <jb@jeremybryant.net>
Commit: Eli Zaretskii <eliz@gnu.org>

    Elisp manual: Mention 'write-region' for saving the buffer
    
    * doc/emacs/files.texi (Save Commands):  Mention
    'write-region'.  (Bug#67313)
---
 doc/emacs/files.texi | 4 ++++
 1 file changed, 4 insertions(+)

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}).
 to that major mode, in most cases.  The command
 @code{set-visited-file-name} also does this.  @xref{Choosing Modes}.
 
+   If you wish to save the current buffer to a different file without
+visiting it, use @code{mark-whole-buffer} (@kbd C-x h), then @kbd{M-x
+write-region} (@pxref{Misc File Ops}
+
   If Emacs is about to save a file and sees that the date of the latest
 version on disk does not match what Emacs last read or wrote, Emacs
 notifies you of this fact, because it probably indicates a problem caused



reply via email to

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