diff options
| -rw-r--r-- | lisp/vc.el | 20 |
1 files changed, 13 insertions, 7 deletions
diff --git a/lisp/vc.el b/lisp/vc.el index 78cfcf5e8ff..f22e2544aed 100644 --- a/lisp/vc.el +++ b/lisp/vc.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> | 5 | ;; Author: Eric S. Raymond <esr@snark.thyrsus.com> |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> | 6 | ;; Maintainer: Andre Spiegel <spiegel@inf.fu-berlin.de> |
| 7 | 7 | ||
| 8 | ;; $Id: vc.el,v 1.241 1998/12/08 16:04:52 rost Exp rms $ | 8 | ;; $Id: vc.el,v 1.242 1999/01/02 21:54:32 rms Exp spiegel $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -2293,9 +2293,6 @@ default directory." | |||
| 2293 | (delete-file tempfile))))) | 2293 | (delete-file tempfile))))) |
| 2294 | 2294 | ||
| 2295 | ;; vc-annotate functionality (CVS only). | 2295 | ;; vc-annotate functionality (CVS only). |
| 2296 | (defvar vc-annotate-mode nil | ||
| 2297 | "Variable indicating if VC-Annotate mode is active.") | ||
| 2298 | |||
| 2299 | (defvar vc-annotate-mode-map nil | 2296 | (defvar vc-annotate-mode-map nil |
| 2300 | "Local keymap used for VC-Annotate mode.") | 2297 | "Local keymap used for VC-Annotate mode.") |
| 2301 | 2298 | ||
| @@ -2444,8 +2441,14 @@ THRESHOLD, nil otherwise" | |||
| 2444 | ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12)))) | 2441 | ("Sep" . 9) ("Oct" . 10) ("Nov" . 11) ("Dec" . 12)))) |
| 2445 | (set-buffer buffer) | 2442 | (set-buffer buffer) |
| 2446 | (display-buffer buffer) | 2443 | (display-buffer buffer) |
| 2447 | (if (not vc-annotate-mode) ; Turn on vc-annotate-mode if not done | 2444 | (or (eq major-mode 'vc-annotate-mode) ; Turn on vc-annotate-mode if not done |
| 2448 | (vc-annotate-mode)) | 2445 | (vc-annotate-mode)) |
| 2446 | ;; Delete old overlays | ||
| 2447 | (mapcar | ||
| 2448 | (lambda (overlay) | ||
| 2449 | (if (overlay-get overlay 'vc-annotation) | ||
| 2450 | (delete-overlay overlay))) | ||
| 2451 | (overlays-in (point-min) (point-max))) | ||
| 2449 | (goto-char (point-min)) ; Position at the top of the buffer. | 2452 | (goto-char (point-min)) ; Position at the top of the buffer. |
| 2450 | (while (re-search-forward | 2453 | (while (re-search-forward |
| 2451 | "^\\S-+\\s-+\\S-+\\s-+\\([0-9]+\\)-\\(\\sw+\\)-\\([0-9]+\\)): " | 2454 | "^\\S-+\\s-+\\S-+\\s-+\\([0-9]+\\)-\\(\\sw+\\)-\\([0-9]+\\)): " |
| @@ -2473,10 +2476,13 @@ THRESHOLD, nil otherwise" | |||
| 2473 | (if vc-annotate-background | 2476 | (if vc-annotate-background |
| 2474 | (set-face-background tmp-face vc-annotate-background)) | 2477 | (set-face-background tmp-face vc-annotate-background)) |
| 2475 | tmp-face)))) ; Return the face | 2478 | tmp-face)))) ; Return the face |
| 2476 | (point (point))) | 2479 | (point (point)) |
| 2480 | overlay) | ||
| 2477 | 2481 | ||
| 2478 | (forward-line 1) | 2482 | (forward-line 1) |
| 2479 | (overlay-put (make-overlay point (point) nil) 'face face))))) | 2483 | (setq overlay (make-overlay point (point))) |
| 2484 | (overlay-put overlay 'face face) | ||
| 2485 | (overlay-put overlay 'vc-annotation t))))) | ||
| 2480 | 2486 | ||
| 2481 | 2487 | ||
| 2482 | ;; Collect back-end-dependent stuff here | 2488 | ;; Collect back-end-dependent stuff here |