Mercurial > emacs
changeset 14622:3d47471d947d
Move all the put's for menu-enable props to top level.
(vc-next-action, vc-toggle-read-only): Enable whenever vc-mode.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Wed, 21 Feb 1996 21:20:57 +0000 |
parents | f989cff391f1 |
children | 00ffbbef6304 |
files | lisp/vc-hooks.el |
diffstat | 1 files changed, 14 insertions(+), 14 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/vc-hooks.el Wed Feb 21 21:20:28 1996 +0000 +++ b/lisp/vc-hooks.el Wed Feb 21 21:20:57 1996 +0000 @@ -1022,20 +1022,20 @@ '("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-register] '("Register" . vc-register)) - (put 'vc-rename-file 'menu-enable 'vc-mode) - (put 'vc-version-other-window 'menu-enable 'vc-mode) - (put 'vc-diff 'menu-enable 'vc-mode) - (put 'vc-update-change-log 'menu-enable - '(eq (vc-buffer-backend) 'RCS)) - (put 'vc-print-log 'menu-enable 'vc-mode) - (put 'vc-cancel-version 'menu-enable 'vc-mode) - (put 'vc-revert-buffer 'menu-enable 'vc-mode) - (put 'vc-insert-headers 'menu-enable 'vc-mode) - (put 'vc-next-action 'menu-enable '(and vc-mode (not buffer-read-only))) - (put 'vc-toggle-read-only 'menu-enable '(and vc-mode buffer-read-only)) - (put 'vc-register 'menu-enable '(and buffer-file-name (not vc-mode))) - ) + (define-key vc-menu-map [vc-register] '("Register" . vc-register))) + +(put 'vc-rename-file 'menu-enable 'vc-mode) +(put 'vc-version-other-window 'menu-enable 'vc-mode) +(put 'vc-diff 'menu-enable 'vc-mode) +(put 'vc-update-change-log 'menu-enable + '(eq (vc-buffer-backend) 'RCS)) +(put 'vc-print-log 'menu-enable 'vc-mode) +(put 'vc-cancel-version 'menu-enable 'vc-mode) +(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)