diff options
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc.el | 14 |
2 files changed, 13 insertions, 6 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 11823e65c63..1036bf477f7 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-04-18 Sam Steingold <sds@gnu.org> | ||
| 2 | |||
| 3 | * vc.el (vc-dir-menu-map, vc-dir-mode-map, vc-dir-tool-bar-map): | ||
| 4 | Use quit-window instead of bury-buffer. | ||
| 5 | |||
| 1 | 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2008-04-18 Stefan Monnier <monnier@iro.umontreal.ca> |
| 2 | 7 | ||
| 3 | * minibuffer.el (completion-table-with-terminator): Fix last fix. | 8 | * minibuffer.el (completion-table-with-terminator): Fix last fix. |
diff --git a/lisp/vc.el b/lisp/vc.el index 9f60590610f..377661065f7 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -177,7 +177,7 @@ | |||
| 177 | ;; run asynchronously using (current-buffer) as the buffer for the | 177 | ;; run asynchronously using (current-buffer) as the buffer for the |
| 178 | ;; command. When RESULT is computed, it should be passed back by | 178 | ;; command. When RESULT is computed, it should be passed back by |
| 179 | ;; doing: (funcall UPDATE-FUNCTION RESULT nil). | 179 | ;; doing: (funcall UPDATE-FUNCTION RESULT nil). |
| 180 | ;; If the backend uses a process filter, hence it produces partial results, | 180 | ;; If the backend uses a process filter, hence it produces partial results, |
| 181 | ;; they can be passed back by doing: | 181 | ;; they can be passed back by doing: |
| 182 | ;; (funcall UPDATE-FUNCTION RESULT t) | 182 | ;; (funcall UPDATE-FUNCTION RESULT t) |
| 183 | ;; and then do a (funcall UPDATE-FUNCTION RESULT nil) | 183 | ;; and then do a (funcall UPDATE-FUNCTION RESULT nil) |
| @@ -2021,6 +2021,7 @@ the buffer contents as a comment." | |||
| 2021 | log-entry)) | 2021 | log-entry)) |
| 2022 | ;; Remove checkin window (after the checkin so that if that fails | 2022 | ;; Remove checkin window (after the checkin so that if that fails |
| 2023 | ;; we don't zap the *VC-log* buffer and the typing therein). | 2023 | ;; we don't zap the *VC-log* buffer and the typing therein). |
| 2024 | ;; -- IMO this should be replaced with quit-window | ||
| 2024 | (let ((logbuf (get-buffer "*VC-log*"))) | 2025 | (let ((logbuf (get-buffer "*VC-log*"))) |
| 2025 | (cond ((and logbuf vc-delete-logbuf-window) | 2026 | (cond ((and logbuf vc-delete-logbuf-window) |
| 2026 | (delete-windows-on logbuf (selected-frame)) | 2027 | (delete-windows-on logbuf (selected-frame)) |
| @@ -2805,7 +2806,7 @@ specific headers." | |||
| 2805 | (defvar vc-dir-menu-map | 2806 | (defvar vc-dir-menu-map |
| 2806 | (let ((map (make-sparse-keymap "VC-dir"))) | 2807 | (let ((map (make-sparse-keymap "VC-dir"))) |
| 2807 | (define-key map [quit] | 2808 | (define-key map [quit] |
| 2808 | '(menu-item "Quit" bury-buffer | 2809 | '(menu-item "Quit" quit-window |
| 2809 | :help "Quit")) | 2810 | :help "Quit")) |
| 2810 | (define-key map [kill] | 2811 | (define-key map [kill] |
| 2811 | '(menu-item "Kill Update Command" vc-dir-kill-dir-status-process | 2812 | '(menu-item "Kill Update Command" vc-dir-kill-dir-status-process |
| @@ -2924,12 +2925,13 @@ specific headers." | |||
| 2924 | (define-key map "\C-m" 'vc-dir-find-file) | 2925 | (define-key map "\C-m" 'vc-dir-find-file) |
| 2925 | (define-key map "o" 'vc-dir-find-file-other-window) | 2926 | (define-key map "o" 'vc-dir-find-file-other-window) |
| 2926 | (define-key map "x" 'vc-dir-hide-up-to-date) | 2927 | (define-key map "x" 'vc-dir-hide-up-to-date) |
| 2927 | (define-key map "q" 'bury-buffer) | 2928 | (define-key map "q" 'quit-window) |
| 2928 | (define-key map "g" 'vc-dir-refresh) | 2929 | (define-key map "g" 'vc-dir-refresh) |
| 2929 | (define-key map "\C-c\C-c" 'vc-dir-kill-dir-status-process) | 2930 | (define-key map "\C-c\C-c" 'vc-dir-kill-dir-status-process) |
| 2930 | ;; Not working yet. Functions like vc-dir-find-file need to | 2931 | ;; Does not work unless mouse sets point. Functions like vc-dir-find-file |
| 2931 | ;; find the file from the mouse position, not `point'. | 2932 | ;; need to find the file from the mouse position, not `point'. |
| 2932 | ;; (define-key map [(down-mouse-3)] 'vc-dir-menu) | 2933 | ;; (define-key map [(down-mouse-3)] 'vc-dir-menu) |
| 2934 | ;; (define-key map [(mouse-2)] 'vc-dir-toggle-mark) | ||
| 2933 | 2935 | ||
| 2934 | ;; Hook up the menu. | 2936 | ;; Hook up the menu. |
| 2935 | (define-key map [menu-bar vc-dir-mode] | 2937 | (define-key map [menu-bar vc-dir-mode] |
| @@ -2983,7 +2985,7 @@ specific headers." | |||
| 2983 | "search" map) | 2985 | "search" map) |
| 2984 | (tool-bar-local-item-from-menu 'vc-dir-kill-dir-status-process "cancel" | 2986 | (tool-bar-local-item-from-menu 'vc-dir-kill-dir-status-process "cancel" |
| 2985 | map vc-dir-mode-map) | 2987 | map vc-dir-mode-map) |
| 2986 | (tool-bar-local-item-from-menu 'bury-buffer "exit" | 2988 | (tool-bar-local-item-from-menu 'quit-window "exit" |
| 2987 | map vc-dir-mode-map) | 2989 | map vc-dir-mode-map) |
| 2988 | map)) | 2990 | map)) |
| 2989 | 2991 | ||