From: Karl Heuer Date: Wed, 7 Jun 1995 18:55:22 +0000 (+0000) Subject: (vc-menu-map): Disable Register when no visited file. X-Git-Tag: emacs-19.34~3756 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=76a8bf4c1f1192be6f4589e0205df0b0f7115c03;p=emacs.git (vc-menu-map): Disable Register when no visited file. --- 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)