]> git.eshelyaron.com Git - emacs.git/commitdiff
(vc-annotate-mode): Inherit from fundamental-mode and activate
authorAndré Spiegel <spiegel@gnu.org>
Wed, 21 Jan 2004 11:05:51 +0000 (11:05 +0000)
committerAndré Spiegel <spiegel@gnu.org>
Wed, 21 Jan 2004 11:05:51 +0000 (11:05 +0000)
view-mode explicitly.

lisp/vc.el

index 6e2eabcb9dfd61d758d30ad2cd58ed2db8808d63..d8402e9c04b158405e07c24df2fd30bd7492e9b3 100644 (file)
@@ -7,7 +7,7 @@
 ;; Maintainer: Andre Spiegel <spiegel@gnu.org>
 ;; Keywords: tools
 
-;; $Id: vc.el,v 1.361 2003/12/24 23:18:10 uid66361 Exp $
+;; $Id: vc.el,v 1.362 2004/01/20 17:39:09 uid65624 Exp $
 
 ;; This file is part of GNU Emacs.
 
@@ -2830,7 +2830,7 @@ Return nil if no match made.  Associations are made based on
 `vc-annotate-buffers'."
   (cdr (assoc buffer vc-annotate-buffers)))
 
-(define-derived-mode vc-annotate-mode view-mode "Annotate"
+(define-derived-mode vc-annotate-mode fundamental-mode "Annotate"
   "Major mode for output buffers of the `vc-annotate' command.
 
 You can use the mode-specific menu to alter the time-span of the used
@@ -2839,6 +2839,7 @@ menu items."
   (set (make-local-variable 'truncate-lines) t)
   (set (make-local-variable 'font-lock-defaults)
        '(vc-annotate-font-lock-keywords t))
+  (view-mode 1)
   (vc-annotate-add-menu))
 
 (defun vc-annotate-display-default (&optional ratio)