From: Pip Cet Date: Tue, 10 Jun 2025 12:26:22 +0000 (+0000) Subject: Print a message when failing to recover a file X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=93276835ca4c4c063e8d46610ef88dd632b0a636;p=emacs.git Print a message when failing to recover a file * lisp/files.el (recover-session-finish): Call 'message' rather than evaluating a string and a variable without using the result. (cherry picked from commit f69b822fb0e804a13ff7a4eb55fc2ae618e0de72) --- diff --git a/lisp/files.el b/lisp/files.el index d5b16a6f58d..f4f5513ed80 100644 --- a/lisp/files.el +++ b/lisp/files.el @@ -7532,7 +7532,8 @@ This command is used in the special Dired buffer created by (condition-case nil (save-excursion (recover-file file)) (error - "Failed to recover `%s'" file))) + (message + "Failed to recover `%s'" file)))) files '("file" "files" "recover")) (message "No files can be recovered from this session now")))