diff options
| -rw-r--r-- | lisp/recentf.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/recentf.el b/lisp/recentf.el index bb462bc71d7..1ea3ae6ecb2 100644 --- a/lisp/recentf.el +++ b/lisp/recentf.el | |||
| @@ -923,9 +923,11 @@ IGNORE arguments." | |||
| 923 | 923 | ||
| 924 | \\{recentf-dialog-mode-map}" | 924 | \\{recentf-dialog-mode-map}" |
| 925 | (interactive) | 925 | (interactive) |
| 926 | (kill-all-local-variables) | ||
| 926 | (setq major-mode 'recentf-dialog-mode) | 927 | (setq major-mode 'recentf-dialog-mode) |
| 927 | (setq mode-name "recentf-dialog") | 928 | (setq mode-name "recentf-dialog") |
| 928 | (use-local-map recentf-dialog-mode-map)) | 929 | (use-local-map recentf-dialog-mode-map) |
| 930 | (run-mode-hooks 'recentf-dialog-mode-hook)) | ||
| 929 | 931 | ||
| 930 | ;;; Hooks | 932 | ;;; Hooks |
| 931 | ;; | 933 | ;; |
| @@ -1002,13 +1004,13 @@ That is to select files to be deleted from the recent list." | |||
| 1002 | (get-buffer-create (format "*%s - Edit list*" recentf-menu-title)) | 1004 | (get-buffer-create (format "*%s - Edit list*" recentf-menu-title)) |
| 1003 | (switch-to-buffer (current-buffer)) | 1005 | (switch-to-buffer (current-buffer)) |
| 1004 | ;; Cleanup buffer | 1006 | ;; Cleanup buffer |
| 1005 | (kill-all-local-variables) | ||
| 1006 | (let ((inhibit-read-only t) | 1007 | (let ((inhibit-read-only t) |
| 1007 | (ol (overlay-lists))) | 1008 | (ol (overlay-lists))) |
| 1008 | (erase-buffer) | 1009 | (erase-buffer) |
| 1009 | ;; Delete all the overlays. | 1010 | ;; Delete all the overlays. |
| 1010 | (mapc 'delete-overlay (car ol)) | 1011 | (mapc 'delete-overlay (car ol)) |
| 1011 | (mapc 'delete-overlay (cdr ol))) | 1012 | (mapc 'delete-overlay (cdr ol))) |
| 1013 | (recentf-dialog-mode) | ||
| 1012 | (setq recentf-edit-selected-items nil) | 1014 | (setq recentf-edit-selected-items nil) |
| 1013 | ;; Insert the dialog header | 1015 | ;; Insert the dialog header |
| 1014 | (widget-insert | 1016 | (widget-insert |
| @@ -1045,7 +1047,6 @@ Click on Cancel or type \"q\" to quit.\n") | |||
| 1045 | 'push-button | 1047 | 'push-button |
| 1046 | :notify 'recentf-cancel-dialog | 1048 | :notify 'recentf-cancel-dialog |
| 1047 | "Cancel") | 1049 | "Cancel") |
| 1048 | (recentf-dialog-mode) | ||
| 1049 | (widget-setup) | 1050 | (widget-setup) |
| 1050 | (goto-char (point-min)))) | 1051 | (goto-char (point-min)))) |
| 1051 | 1052 | ||
| @@ -1101,13 +1102,13 @@ default." | |||
| 1101 | (with-current-buffer (get-buffer-create buffer-name) | 1102 | (with-current-buffer (get-buffer-create buffer-name) |
| 1102 | (switch-to-buffer (current-buffer)) | 1103 | (switch-to-buffer (current-buffer)) |
| 1103 | ;; Cleanup buffer | 1104 | ;; Cleanup buffer |
| 1104 | (kill-all-local-variables) | ||
| 1105 | (let ((inhibit-read-only t) | 1105 | (let ((inhibit-read-only t) |
| 1106 | (ol (overlay-lists))) | 1106 | (ol (overlay-lists))) |
| 1107 | (erase-buffer) | 1107 | (erase-buffer) |
| 1108 | ;; Delete all the overlays. | 1108 | ;; Delete all the overlays. |
| 1109 | (mapc 'delete-overlay (car ol)) | 1109 | (mapc 'delete-overlay (car ol)) |
| 1110 | (mapc 'delete-overlay (cdr ol))) | 1110 | (mapc 'delete-overlay (cdr ol))) |
| 1111 | (recentf-dialog-mode) | ||
| 1111 | ;; Insert the dialog header | 1112 | ;; Insert the dialog header |
| 1112 | (widget-insert "Click on a file to open it. ") | 1113 | (widget-insert "Click on a file to open it. ") |
| 1113 | (widget-insert "Click on Cancel or type \"q\" to quit.\n\n" ) | 1114 | (widget-insert "Click on Cancel or type \"q\" to quit.\n\n" ) |
| @@ -1123,7 +1124,6 @@ default." | |||
| 1123 | 'push-button | 1124 | 'push-button |
| 1124 | :notify 'recentf-cancel-dialog | 1125 | :notify 'recentf-cancel-dialog |
| 1125 | "Cancel") | 1126 | "Cancel") |
| 1126 | (recentf-dialog-mode) | ||
| 1127 | (widget-setup) | 1127 | (widget-setup) |
| 1128 | (goto-char (point-min)))) | 1128 | (goto-char (point-min)))) |
| 1129 | 1129 | ||