aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDan Nicolaescu2008-06-23 07:03:33 +0000
committerDan Nicolaescu2008-06-23 07:03:33 +0000
commitffbda93a863b687a419b1c6453deae23e8be4829 (patch)
tree1c784451a37d6c9bf90e20686acee593b12dd666
parentb7bc82c54698d19003ee121456569dd654d11d86 (diff)
downloademacs-ffbda93a863b687a419b1c6453deae23e8be4829.tar.gz
emacs-ffbda93a863b687a419b1c6453deae23e8be4829.zip
(vc-annotate-mode): Derive from special-mode
instead of using view-mode.
-rw-r--r--lisp/ChangeLog5
-rw-r--r--lisp/vc-annotate.el5
2 files changed, 7 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index d85a93c6898..e71ef1acee1 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,8 @@
12008-06-23 Dan Nicolaescu <dann@ics.uci.edu>
2
3 * vc-annotate.el (vc-annotate-mode): Derive from special-mode
4 instead of using view-mode.
5
12008-06-23 Stefan Monnier <monnier@iro.umontreal.ca> 62008-06-23 Stefan Monnier <monnier@iro.umontreal.ca>
2 7
3 * Makefile.in (distclean): Don't delete *.elc and autogen files. 8 * Makefile.in (distclean): Don't delete *.elc and autogen files.
diff --git a/lisp/vc-annotate.el b/lisp/vc-annotate.el
index fbc1ba1247d..eadce2db957 100644
--- a/lisp/vc-annotate.el
+++ b/lisp/vc-annotate.el
@@ -149,7 +149,7 @@ List of factors, used to expand/compress the time scale. See `vc-annotate'."
149 ;; The fontification is done by vc-annotate-lines instead of font-lock. 149 ;; The fontification is done by vc-annotate-lines instead of font-lock.
150 '((vc-annotate-lines))) 150 '((vc-annotate-lines)))
151 151
152(define-derived-mode vc-annotate-mode fundamental-mode "Annotate" 152(define-derived-mode vc-annotate-mode special-mode "Annotate"
153 "Major mode for output buffers of the `vc-annotate' command. 153 "Major mode for output buffers of the `vc-annotate' command.
154 154
155You can use the mode-specific menu to alter the time-span of the used 155You can use the mode-specific menu to alter the time-span of the used
@@ -161,8 +161,7 @@ menu items."
161 (remove-from-invisibility-spec 'foo) 161 (remove-from-invisibility-spec 'foo)
162 (set (make-local-variable 'truncate-lines) t) 162 (set (make-local-variable 'truncate-lines) t)
163 (set (make-local-variable 'font-lock-defaults) 163 (set (make-local-variable 'font-lock-defaults)
164 '(vc-annotate-font-lock-keywords t)) 164 '(vc-annotate-font-lock-keywords t)))
165 (view-mode 1))
166 165
167(defun vc-annotate-toggle-annotation-visibility () 166(defun vc-annotate-toggle-annotation-visibility ()
168 "Toggle whether or not the annotation is visible." 167 "Toggle whether or not the annotation is visible."