changeset 96206:5a490e8feb43

(vc-annotate-mode): Derive from special-mode instead of using view-mode.
author Dan Nicolaescu <dann@ics.uci.edu>
date Mon, 23 Jun 2008 07:03:33 +0000
parents c6e22fd294c4
children 2e4b2055f713
files lisp/ChangeLog lisp/vc-annotate.el
diffstat 2 files changed, 7 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Jun 23 03:11:56 2008 +0000
+++ b/lisp/ChangeLog	Mon Jun 23 07:03:33 2008 +0000
@@ -1,3 +1,8 @@
+2008-06-23  Dan Nicolaescu  <dann@ics.uci.edu>
+
+	* vc-annotate.el (vc-annotate-mode): Derive from special-mode
+	instead of using view-mode.
+
 2008-06-23  Stefan Monnier  <monnier@iro.umontreal.ca>
 
 	* Makefile.in (distclean): Don't delete *.elc and autogen files.
--- a/lisp/vc-annotate.el	Mon Jun 23 03:11:56 2008 +0000
+++ b/lisp/vc-annotate.el	Mon Jun 23 07:03:33 2008 +0000
@@ -149,7 +149,7 @@
   ;; The fontification is done by vc-annotate-lines instead of font-lock.
   '((vc-annotate-lines)))
 
-(define-derived-mode vc-annotate-mode fundamental-mode "Annotate"
+(define-derived-mode vc-annotate-mode special-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
@@ -161,8 +161,7 @@
   (remove-from-invisibility-spec 'foo)
   (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-font-lock-keywords t)))
 
 (defun vc-annotate-toggle-annotation-visibility ()
   "Toggle whether or not the annotation is visible."