comparison lisp/vc.el @ 94698:8983ac9b89b4

Back out menu move, it broke something obscure.
author Eric S. Raymond <esr@snark.thyrsus.com>
date Tue, 06 May 2008 23:44:50 +0000
parents f46fc59d6e9e
children 7e7ef774315b
comparison
equal deleted inserted replaced
94697:f8e080083e06 94698:8983ac9b89b4
2133 (define-key map "+" 'vc-update) ;; C-x v + 2133 (define-key map "+" 'vc-update) ;; C-x v +
2134 (define-key map "R" 'vc-revert) ;; u is taken by dispatcher unmark. 2134 (define-key map "R" 'vc-revert) ;; u is taken by dispatcher unmark.
2135 (define-key map "A" 'vc-annotate) ;; g is taken by dispatcher referesh 2135 (define-key map "A" 'vc-annotate) ;; g is taken by dispatcher referesh
2136 (define-key map "l" 'vc-print-log) ;; C-x v l 2136 (define-key map "l" 'vc-print-log) ;; C-x v l
2137 (define-key map "x" 'vc-dir-hide-up-to-date)) 2137 (define-key map "x" 'vc-dir-hide-up-to-date))
2138 ;; Add VC-specific context menu items
2139 (let ((map right-menu-map))
2140 ;; VC info details
2141 (define-key map [sepvcdet] '("--"))
2142 (define-key map [remup]
2143 '(menu-item "Hide up-to-date" vc-dir-hide-up-to-date
2144 :help "Hide up-to-date items from display"))
2145 ;; FIXME: This needs a key binding. And maybe a better name
2146 ;; ("Insert" like PCL-CVS uses does not sound that great either)...
2147 (define-key map [ins]
2148 '(menu-item "Show File" vc-dir-show-fileentry
2149 :help "Show a file in the VC status listing even though it might be up to date"))
2150 (define-key map [annotate]
2151 '(menu-item "Annotate" vc-annotate
2152 :help "Display the edit history of the current file using colors"))
2153 (define-key map [diff]
2154 '(menu-item "Compare with Base Version" vc-diff
2155 :help "Compare file set with the base version"))
2156 (define-key map [log]
2157 '(menu-item "Show history" vc-print-log
2158 :help "List the change log of the current file set in a window"))
2159 ;; VC commands.
2160 (define-key map [sepvccmd] '("--"))
2161 (define-key map [update]
2162 '(menu-item "Update to latest version" vc-update
2163 :help "Update the current fileset's files to their tip revisions"))
2164 (define-key map [revert]
2165 '(menu-item "Revert to base version" vc-revert
2166 :help "Revert working copies of the selected fileset to their repository contents."))
2167 (define-key map [next-action]
2168 ;; FIXME: This really really really needs a better name!
2169 ;; And a key binding too.
2170 '(menu-item "Check In/Out" vc-next-action
2171 :help "Do the next logical version control operation on the current fileset"))
2172 (define-key map [register]
2173 '(menu-item "Register" vc-dir-register
2174 :help "Register file set into the version control system")))
2175 ;; Hook up the menu.
2176 (define-key (current-local-map) [menu-bar vc-dir-mode]
2177 '(menu-item
2178 ;; This is used so that back ends can add mode-specific
2179 ;; menu items to vc-dir-menu-map.
2180 "VC Status" vc-dir-menu-map :filter vc-dir-menu-map-filter))
2181 ))) 2138 )))
2182 2139
2183 ;; Named-configuration entry points 2140 ;; Named-configuration entry points
2184 2141
2185 (defun vc-snapshot-precondition (dir) 2142 (defun vc-snapshot-precondition (dir)