# HG changeset patch # User Dan Nicolaescu # Date 1214204613 0 # Node ID 5a490e8feb43a417dcf26d8d254b52dfbd5318ca # Parent c6e22fd294c42f6fea50ace1924466037efb5947 (vc-annotate-mode): Derive from special-mode instead of using view-mode. diff -r c6e22fd294c4 -r 5a490e8feb43 lisp/ChangeLog --- 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 + + * vc-annotate.el (vc-annotate-mode): Derive from special-mode + instead of using view-mode. + 2008-06-23 Stefan Monnier * Makefile.in (distclean): Don't delete *.elc and autogen files. diff -r c6e22fd294c4 -r 5a490e8feb43 lisp/vc-annotate.el --- 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."