diff options
author | Zachary Kanfer <zkanfer@gmail.com> | 2022-06-28 14:13:58 +0200 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-28 14:15:47 +0200 |
commit | 772b189143453745a8e014e21d4b6b78f855bba3 (patch) | |
tree | 90cfbdcf735317c412f201ec6fc70cf4e43ca4d7 /doc | |
parent | 0b62ad2f3a57845c664965658da82ffc93cb6e26 (diff) | |
download | emacs-772b189143453745a8e014e21d4b6b78f855bba3.tar.gz |
Add new command `rename-visited-file'
* doc/emacs/files.texi (Save Commands): Document it.
* lisp/files.el (rename-visited-file): New command (bug#56229).
Diffstat (limited to 'doc')
-rw-r--r-- | doc/emacs/files.texi | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/doc/emacs/files.texi b/doc/emacs/files.texi index 5c80cfe1904..2296bacada2 100644 --- a/doc/emacs/files.texi +++ b/doc/emacs/files.texi @@ -420,6 +420,9 @@ With prefix argument (@kbd{C-u}), mark the current buffer as changed. Save the current buffer with a specified file name (@code{write-file}). @item M-x set-visited-file-name Change the file name under which the current buffer will be saved. +@item M-x rename-visited-file +The same as @kbd{M-x set-visited-file-name}, but also rename the file +the buffer if visiting (if any). @end table @kindex C-x C-s |