diff options
| -rw-r--r-- | lisp/vc-dispatcher.el | 38 | ||||
| -rw-r--r-- | lisp/vc.el | 40 |
2 files changed, 40 insertions, 38 deletions
diff --git a/lisp/vc-dispatcher.el b/lisp/vc-dispatcher.el index 4eb35d3155f..c377da29746 100644 --- a/lisp/vc-dispatcher.el +++ b/lisp/vc-dispatcher.el | |||
| @@ -996,44 +996,8 @@ See `run-hooks'." | |||
| 996 | (define-key map [open] | 996 | (define-key map [open] |
| 997 | '(menu-item "Open file" vc-dir-find-file | 997 | '(menu-item "Open file" vc-dir-find-file |
| 998 | :help "Find the file on the current line")) | 998 | :help "Find the file on the current line")) |
| 999 | ;; FIXME: Stuff starting here should be appended by vc | ||
| 1000 | ;; VC info details | ||
| 1001 | (define-key map [sepvcdet] '("--")) | ||
| 1002 | (define-key map [remup] | ||
| 1003 | '(menu-item "Hide up-to-date" vc-dir-hide-up-to-date | ||
| 1004 | :help "Hide up-to-date items from display")) | ||
| 1005 | ;; FIXME: This needs a key binding. And maybe a better name | ||
| 1006 | ;; ("Insert" like PCL-CVS uses does not sound that great either)... | ||
| 1007 | (define-key map [ins] | ||
| 1008 | '(menu-item "Show File" vc-dir-show-fileentry | ||
| 1009 | :help "Show a file in the VC status listing even though it might be up to date")) | ||
| 1010 | (define-key map [annotate] | ||
| 1011 | '(menu-item "Annotate" vc-annotate | ||
| 1012 | :help "Display the edit history of the current file using colors")) | ||
| 1013 | (define-key map [diff] | ||
| 1014 | '(menu-item "Compare with Base Version" vc-diff | ||
| 1015 | :help "Compare file set with the base version")) | ||
| 1016 | (define-key map [log] | ||
| 1017 | '(menu-item "Show history" vc-print-log | ||
| 1018 | :help "List the change log of the current file set in a window")) | ||
| 1019 | ;; VC commands. | ||
| 1020 | (define-key map [sepvccmd] '("--")) | ||
| 1021 | (define-key map [update] | ||
| 1022 | '(menu-item "Update to latest version" vc-update | ||
| 1023 | :help "Update the current fileset's files to their tip revisions")) | ||
| 1024 | (define-key map [revert] | ||
| 1025 | '(menu-item "Revert to base version" vc-revert | ||
| 1026 | :help "Revert working copies of the selected fileset to their repository contents.")) | ||
| 1027 | (define-key map [next-action] | ||
| 1028 | ;; FIXME: This really really really needs a better name! | ||
| 1029 | ;; And a key binding too. | ||
| 1030 | '(menu-item "Check In/Out" vc-next-action | ||
| 1031 | :help "Do the next logical version control operation on the current fileset")) | ||
| 1032 | (define-key map [register] | ||
| 1033 | '(menu-item "Register" vc-dir-register | ||
| 1034 | :help "Register file set into the version control system")) | ||
| 1035 | map) | 999 | map) |
| 1036 | "Menu for VC status") | 1000 | "Menu for dispatcher status") |
| 1037 | 1001 | ||
| 1038 | (defalias 'vc-dir-menu-map vc-dir-menu-map) | 1002 | (defalias 'vc-dir-menu-map vc-dir-menu-map) |
| 1039 | 1003 | ||
diff --git a/lisp/vc.el b/lisp/vc.el index 06b83ef33b8..8d7d6104121 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -2122,7 +2122,45 @@ outside of VC) and one wants to do some operation on it." | |||
| 2122 | (define-key map "A" 'vc-annotate) ;; g is taken by dispatcher referesh | 2122 | (define-key map "A" 'vc-annotate) ;; g is taken by dispatcher referesh |
| 2123 | (define-key map "l" 'vc-print-log) ;; C-x v l | 2123 | (define-key map "l" 'vc-print-log) ;; C-x v l |
| 2124 | (define-key map "x" 'vc-dir-hide-up-to-date)) | 2124 | (define-key map "x" 'vc-dir-hide-up-to-date)) |
| 2125 | ))) | 2125 | ) |
| 2126 | ;; FIXME: Needs to alter a buffer-local map, otherwise clients may clash | ||
| 2127 | (let ((map vc-dir-menu-map)) | ||
| 2128 | ;; VC info details | ||
| 2129 | (define-key map [sepvcdet] '("--")) | ||
| 2130 | (define-key map [remup] | ||
| 2131 | '(menu-item "Hide up-to-date" vc-dir-hide-up-to-date | ||
| 2132 | :help "Hide up-to-date items from display")) | ||
| 2133 | ;; FIXME: This needs a key binding. And maybe a better name | ||
| 2134 | ;; ("Insert" like PCL-CVS uses does not sound that great either)... | ||
| 2135 | (define-key map [ins] | ||
| 2136 | '(menu-item "Show File" vc-dir-show-fileentry | ||
| 2137 | :help "Show a file in the VC status listing even though it might be up to date")) | ||
| 2138 | (define-key map [annotate] | ||
| 2139 | '(menu-item "Annotate" vc-annotate | ||
| 2140 | :help "Display the edit history of the current file using colors")) | ||
| 2141 | (define-key map [diff] | ||
| 2142 | '(menu-item "Compare with Base Version" vc-diff | ||
| 2143 | :help "Compare file set with the base version")) | ||
| 2144 | (define-key map [log] | ||
| 2145 | '(menu-item "Show history" vc-print-log | ||
| 2146 | :help "List the change log of the current file set in a window")) | ||
| 2147 | ;; VC commands. | ||
| 2148 | (define-key map [sepvccmd] '("--")) | ||
| 2149 | (define-key map [update] | ||
| 2150 | '(menu-item "Update to latest version" vc-update | ||
| 2151 | :help "Update the current fileset's files to their tip revisions")) | ||
| 2152 | (define-key map [revert] | ||
| 2153 | '(menu-item "Revert to base version" vc-revert | ||
| 2154 | :help "Revert working copies of the selected fileset to their repository contents.")) | ||
| 2155 | (define-key map [next-action] | ||
| 2156 | ;; FIXME: This really really really needs a better name! | ||
| 2157 | ;; And a key binding too. | ||
| 2158 | '(menu-item "Check In/Out" vc-next-action | ||
| 2159 | :help "Do the next logical version control operation on the current fileset")) | ||
| 2160 | (define-key map [register] | ||
| 2161 | '(menu-item "Register" vc-dir-register | ||
| 2162 | :help "Register file set into the version control system")) | ||
| 2163 | ))) | ||
| 2126 | 2164 | ||
| 2127 | ;; Named-configuration entry points | 2165 | ;; Named-configuration entry points |
| 2128 | 2166 | ||