aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/files.el7
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/files.el b/lisp/files.el
index 1a7ca53a855..ad4aab933ff 100644
--- a/lisp/files.el
+++ b/lisp/files.el
@@ -2107,8 +2107,10 @@ Then you'll be asked about a number of files to recover."
2107 (goto-char (point-min)) 2107 (goto-char (point-min))
2108 (or (looking-at "Move to the session you want to recover,") 2108 (or (looking-at "Move to the session you want to recover,")
2109 (let ((inhibit-read-only t)) 2109 (let ((inhibit-read-only t))
2110 (insert "Move to the session you want to recover,\n") 2110 (insert "Move to the session you want to recover,\n"
2111 (insert "then type C-c C-c to select it.\n\n"))) 2111 "then type C-c C-c to select it.\n\n"
2112 "You can also delete some of these files;\n"
2113 "type d on a line to mark that file for deletion.\n\n")))
2112 (use-local-map (nconc (make-sparse-keymap) (current-local-map))) 2114 (use-local-map (nconc (make-sparse-keymap) (current-local-map)))
2113 (define-key (current-local-map) "\C-c\C-c" 'recover-session-finish)) 2115 (define-key (current-local-map) "\C-c\C-c" 'recover-session-finish))
2114 2116
@@ -2120,6 +2122,7 @@ This command is used in the special Dired buffer created by
2120 ;; Get the name of the session file to recover from. 2122 ;; Get the name of the session file to recover from.
2121 (let ((file (dired-get-filename)) 2123 (let ((file (dired-get-filename))
2122 (buffer (get-buffer-create " *recover*"))) 2124 (buffer (get-buffer-create " *recover*")))
2125 (dired-do-flagged-delete t)
2123 (unwind-protect 2126 (unwind-protect
2124 (save-excursion 2127 (save-excursion
2125 ;; Read in the auto-save-list file. 2128 ;; Read in the auto-save-list file.