[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [patch] add interactive browse of revisions from vc *Annotate* buffe
From: |
Benjamin Rutt |
Subject: |
Re: [patch] add interactive browse of revisions from vc *Annotate* buffers |
Date: |
Tue, 20 Jan 2004 17:28:42 -0500 |
User-agent: |
Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (usg-unix-v) |
Stefan Monnier <address@hidden> writes:
> I strongly expect that the problem is in the fact that you use view-mode as
> parent even though it's not a major-mode.
Thanks for the tip, you are correct; I guess define-derived-mode was
somewhat misleading to me since it doesn't mention anywhere in 'C-h f
define-derived-mode' that it only works for major modes.
Andre, could you install the following tiny patch that fixes the
problem?
Index: lisp/vc.el
===================================================================
RCS file: /cvsroot/emacs/emacs/lisp/vc.el,v
retrieving revision 1.362
diff -u -r1.362 vc.el
--- lisp/vc.el 20 Jan 2004 17:39:09 -0000 1.362
+++ lisp/vc.el 20 Jan 2004 22:25:47 -0000
@@ -2830,7 +2830,7 @@
`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 @@
(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)
--
Benjamin
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, (continued)
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Miles Bader, 2004/01/22
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Kevin Rodgers, 2004/01/20
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Stefan Monnier, 2004/01/20
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Benjamin Rutt, 2004/01/20
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Stefan Monnier, 2004/01/20
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Benjamin Rutt, 2004/01/20
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Benjamin Rutt, 2004/01/19
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Andre Spiegel, 2004/01/20
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Benjamin Rutt, 2004/01/20
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Stefan Monnier, 2004/01/20
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers,
Benjamin Rutt <=
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Kevin Rodgers, 2004/01/22
- Re: [patch] add interactive browse of revisions from vc *Annotate* buffers, Stefan Monnier, 2004/01/22