aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard M. Stallman1995-08-01 23:34:53 +0000
committerRichard M. Stallman1995-08-01 23:34:53 +0000
commit033ef863a8ce97d68d14c2aa2fa066cddf25af34 (patch)
tree8b9880009f1833dbae4dbaf41fe0b0e5c22e03c4
parent8fe9ecef74c1f2e542867374b4cad2a5910d2707 (diff)
downloademacs-033ef863a8ce97d68d14c2aa2fa066cddf25af34.tar.gz
emacs-033ef863a8ce97d68d14c2aa2fa066cddf25af34.zip
(recover-session): Mention deletion is possible.
(recover-session-finish): Call dired-do-flagged-delete.
-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.