Mercurial > emacs
comparison lisp/vc-hooks.el @ 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 | 20d4400de24e |
children | b1a88c3a6912 |
comparison
equal
deleted
inserted
replaced
14621:f989cff391f1 | 14622:3d47471d947d |
---|---|
1020 '("Revert to Last Version" . vc-revert-buffer)) | 1020 '("Revert to Last Version" . vc-revert-buffer)) |
1021 (define-key vc-menu-map [vc-insert-header] | 1021 (define-key vc-menu-map [vc-insert-header] |
1022 '("Insert Header" . vc-insert-headers)) | 1022 '("Insert Header" . vc-insert-headers)) |
1023 (define-key vc-menu-map [vc-menu-check-in] '("Check In" . vc-next-action)) | 1023 (define-key vc-menu-map [vc-menu-check-in] '("Check In" . vc-next-action)) |
1024 (define-key vc-menu-map [vc-check-out] '("Check Out" . vc-toggle-read-only)) | 1024 (define-key vc-menu-map [vc-check-out] '("Check Out" . vc-toggle-read-only)) |
1025 (define-key vc-menu-map [vc-register] '("Register" . vc-register)) | 1025 (define-key vc-menu-map [vc-register] '("Register" . vc-register))) |
1026 (put 'vc-rename-file 'menu-enable 'vc-mode) | 1026 |
1027 (put 'vc-version-other-window 'menu-enable 'vc-mode) | 1027 (put 'vc-rename-file 'menu-enable 'vc-mode) |
1028 (put 'vc-diff 'menu-enable 'vc-mode) | 1028 (put 'vc-version-other-window 'menu-enable 'vc-mode) |
1029 (put 'vc-update-change-log 'menu-enable | 1029 (put 'vc-diff 'menu-enable 'vc-mode) |
1030 '(eq (vc-buffer-backend) 'RCS)) | 1030 (put 'vc-update-change-log 'menu-enable |
1031 (put 'vc-print-log 'menu-enable 'vc-mode) | 1031 '(eq (vc-buffer-backend) 'RCS)) |
1032 (put 'vc-cancel-version 'menu-enable 'vc-mode) | 1032 (put 'vc-print-log 'menu-enable 'vc-mode) |
1033 (put 'vc-revert-buffer 'menu-enable 'vc-mode) | 1033 (put 'vc-cancel-version 'menu-enable 'vc-mode) |
1034 (put 'vc-insert-headers 'menu-enable 'vc-mode) | 1034 (put 'vc-revert-buffer 'menu-enable 'vc-mode) |
1035 (put 'vc-next-action 'menu-enable '(and vc-mode (not buffer-read-only))) | 1035 (put 'vc-insert-headers 'menu-enable 'vc-mode) |
1036 (put 'vc-toggle-read-only 'menu-enable '(and vc-mode buffer-read-only)) | 1036 (put 'vc-next-action 'menu-enable 'vc-mode) |
1037 (put 'vc-register 'menu-enable '(and buffer-file-name (not vc-mode))) | 1037 (put 'vc-toggle-read-only 'menu-enable 'vc-mode) |
1038 ) | 1038 (put 'vc-register 'menu-enable '(and buffer-file-name (not vc-mode))) |
1039 | 1039 |
1040 (provide 'vc-hooks) | 1040 (provide 'vc-hooks) |
1041 | 1041 |
1042 ;;; vc-hooks.el ends here | 1042 ;;; vc-hooks.el ends here |