diff options
Diffstat (limited to 'lisp/vc-hooks.el')
-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) |