Commit 1f4f0f46 authored by Glenn Morris's avatar Glenn Morris

* vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item

if the backend is known not to support it.
parent 48c828b9
2013-02-01 Glenn Morris <rgm@gnu.org>
* vc/vc-hooks.el (vc-menu-map): Disable vc-rollback menu item
if the backend is known not to support it.
* imenu.el (imenu-default-create-index-function):
Tweak infinite loop test to check for forward motion as well as none.
......
......@@ -976,6 +976,10 @@ current, and kill the buffer that visits the link."
"))
(bindings--define-key map [undo]
'(menu-item "Undo Last Check-In" vc-rollback
:enable (let ((backend (if buffer-file-name
(vc-backend buffer-file-name))))
(or (not backend)
(vc-find-backend-function backend 'rollback)))
:help "Remove the most recent changeset committed to the repository"))
(bindings--define-key map [vc-revert]
'(menu-item "Revert to Base Version" vc-revert
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment