changeset 12102:01cc5af0985b

(vc-menu-map): Disable Register when no visited file.
author Karl Heuer <kwzh@gnu.org>
date Wed, 07 Jun 1995 18:55:22 +0000
parents 30adadd79bf9
children 5a4f4ce4ebb6
files lisp/vc-hooks.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/vc-hooks.el	Wed Jun 07 18:38:02 1995 +0000
+++ b/lisp/vc-hooks.el	Wed Jun 07 18:55:22 1995 +0000
@@ -829,7 +829,7 @@
   (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)