diff options
| author | Andreas Schwab | 1999-01-04 11:57:27 +0000 |
|---|---|---|
| committer | Andreas Schwab | 1999-01-04 11:57:27 +0000 |
| commit | 05e076c7ea9fc9a7d3c051a93309dccff320d0ea (patch) | |
| tree | 0df6035370c52f2b80696247c2df37a57f44f635 | |
| parent | f0ee23367c2c24520fc759051d3d7a1248d5c13b (diff) | |
| download | emacs-05e076c7ea9fc9a7d3c051a93309dccff320d0ea.tar.gz emacs-05e076c7ea9fc9a7d3c051a93309dccff320d0ea.zip | |
(recover-session): Preserve point when inserting
explanation.
| -rw-r--r-- | lisp/files.el | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lisp/files.el b/lisp/files.el index ac9153bc87c..4698ff0beaf 100644 --- a/lisp/files.el +++ b/lisp/files.el | |||
| @@ -2793,15 +2793,16 @@ Then you'll be asked about a number of files to recover." | |||
| 2793 | (let ((ls-lisp-support-shell-wildcards t)) | 2793 | (let ((ls-lisp-support-shell-wildcards t)) |
| 2794 | (dired (concat auto-save-list-file-prefix "*") | 2794 | (dired (concat auto-save-list-file-prefix "*") |
| 2795 | (concat dired-listing-switches "t"))) | 2795 | (concat dired-listing-switches "t"))) |
| 2796 | (goto-char (point-min)) | 2796 | (save-excursion |
| 2797 | (or (looking-at "Move to the session you want to recover,") | 2797 | (goto-char (point-min)) |
| 2798 | (let ((inhibit-read-only t)) | 2798 | (or (looking-at " Move to the session you want to recover,") |
| 2799 | ;; Each line starts with a space | 2799 | (let ((inhibit-read-only t)) |
| 2800 | ;; so that Font Lock mode won't highlight the first character. | 2800 | ;; Each line starts with a space |
| 2801 | (insert " Move to the session you want to recover,\n" | 2801 | ;; so that Font Lock mode won't highlight the first character. |
| 2802 | " then type C-c C-c to select it.\n\n" | 2802 | (insert " Move to the session you want to recover,\n" |
| 2803 | " You can also delete some of these files;\n" | 2803 | " then type C-c C-c to select it.\n\n" |
| 2804 | " type d on a line to mark that file for deletion.\n\n"))) | 2804 | " You can also delete some of these files;\n" |
| 2805 | " type d on a line to mark that file for deletion.\n\n")))) | ||
| 2805 | (use-local-map (nconc (make-sparse-keymap) (current-local-map))) | 2806 | (use-local-map (nconc (make-sparse-keymap) (current-local-map))) |
| 2806 | (define-key (current-local-map) "\C-c\C-c" 'recover-session-finish)) | 2807 | (define-key (current-local-map) "\C-c\C-c" 'recover-session-finish)) |
| 2807 | 2808 | ||