From 76a8bf4c1f1192be6f4589e0205df0b0f7115c03 Mon Sep 17 00:00:00 2001 From: Karl Heuer Date: Wed, 7 Jun 1995 18:55:22 +0000 Subject: [PATCH] (vc-menu-map): Disable Register when no visited file. --- lisp/vc-hooks.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2