From 93276835ca4c4c063e8d46610ef88dd632b0a636 Mon Sep 17 00:00:00 2001 From: Pip Cet Date: Tue, 10 Jun 2025 12:26:22 +0000 Subject: [PATCH] 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) --- lisp/files.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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"))) -- 2.39.5