diff options
author | Karl Heuer <kwzh@gnu.org> | 1995-06-07 18:55:22 +0000 |
---|---|---|
committer | Karl Heuer <kwzh@gnu.org> | 1995-06-07 18:55:22 +0000 |
commit | 4a4087a9fc6a01523b7fd8dd25af879fe13a7b68 (patch) | |
tree | 15d350bbfc65b1661e990a112c1f45b6570cc335 /lisp | |
parent | 4dc22b912a48f8b07bcadc7c52bf2babe58bd37a (diff) | |
download | emacs-4a4087a9fc6a01523b7fd8dd25af879fe13a7b68.tar.gz |
(vc-menu-map): Disable Register when no visited file.
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/vc-hooks.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/vc-hooks.el b/lisp/vc-hooks.el index 4b41ef1ca40..c875a581024 100644 --- a/lisp/vc-hooks.el +++ b/lisp/vc-hooks.el @@ -829,7 +829,7 @@ Returns t if checkout was successful, nil otherwise." (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 '(not vc-mode)) + (put 'vc-register 'menu-enable '(and buffer-file-name (not vc-mode))) ) (provide 'vc-hooks) |