From 9314395d3f3c8d5d943694a0501da54f77490376 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Andr=C3=A9=20Spiegel?= Date: Sun, 3 Aug 1997 12:48:31 +0000 Subject: [PATCH] (vc-menu-map): Replace entries for "Check In" and "Check Out" with new entry "Check In/Out" (calling vc-next-action). --- lisp/vc-hooks.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index b775e89cbfe..c1452e63c05 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -1093,8 +1093,7 @@ Returns t if checkout was successful, nil otherwise." '("Revert to Last Version" . vc-revert-buffer)) (define-key vc-menu-map [vc-insert-header] '("Insert Header" . vc-insert-headers)) - (define-key vc-menu-map [vc-menu-check-in] '("Check In" . vc-next-action)) - (define-key vc-menu-map [vc-check-out] '("Check Out" . vc-toggle-read-only)) + (define-key vc-menu-map [vc-next-action] '("Check In/Out" . vc-next-action)) (define-key vc-menu-map [vc-register] '("Register" . vc-register))) (put 'vc-rename-file 'menu-enable 'vc-mode) @@ -1108,7 +1107,6 @@ Returns t if checkout was successful, nil otherwise." (put 'vc-revert-buffer 'menu-enable 'vc-mode) (put 'vc-insert-headers 'menu-enable 'vc-mode) (put 'vc-next-action 'menu-enable 'vc-mode) -(put 'vc-toggle-read-only 'menu-enable 'vc-mode) (put 'vc-register 'menu-enable '(and buffer-file-name (not vc-mode))) (provide 'vc-hooks) -- 2.39.2