mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Small recover-this-file improvement
* lisp/files.el (recover-this-file): Explicit error if not visiting a file. (Bug#23671)
This commit is contained in:
parent
79abec2fee
commit
8244357283
1 changed files with 2 additions and 0 deletions
|
|
@ -5838,6 +5838,8 @@ an auto-save file."
|
|||
(defun recover-this-file ()
|
||||
"Recover the visited file--get contents from its last auto-save file."
|
||||
(interactive)
|
||||
(or buffer-file-name
|
||||
(user-error "This buffer is not visiting a file"))
|
||||
(recover-file buffer-file-name))
|
||||
|
||||
(defun recover-file (file)
|
||||
|
|
|
|||
Loading…
Reference in a new issue