diff options
| author | Dan Nicolaescu | 2008-06-23 07:03:33 +0000 |
|---|---|---|
| committer | Dan Nicolaescu | 2008-06-23 07:03:33 +0000 |
| commit | ffbda93a863b687a419b1c6453deae23e8be4829 (patch) | |
| tree | 1c784451a37d6c9bf90e20686acee593b12dd666 | |
| parent | b7bc82c54698d19003ee121456569dd654d11d86 (diff) | |
| download | emacs-ffbda93a863b687a419b1c6453deae23e8be4829.tar.gz emacs-ffbda93a863b687a419b1c6453deae23e8be4829.zip | |
(vc-annotate-mode): Derive from special-mode
instead of using view-mode.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-annotate.el | 5 |
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 @@ | |||
| 1 | 2008-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 | |||
| 1 | 2008-06-23 Stefan Monnier <monnier@iro.umontreal.ca> | 6 | 2008-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 | ||
| 155 | You can use the mode-specific menu to alter the time-span of the used | 155 | You 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." |