summaryrefslogtreecommitdiff
path: root/lisp/vc-cvs.el
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>2008-01-08 20:46:54 +0000
committerMiles Bader <miles@gnu.org>2008-01-08 20:46:54 +0000
commit59ce725a3b68cbc324f01bc8dc5f9e07286431d1 (patch)
treec17b8f002edf6892e273ff53214b1b23c880e69f /lisp/vc-cvs.el
parent0664ff722152f34c2e87e9e644bbab401530b9d4 (diff)
parentbf515869577b12abd42777fb0647259920c862fc (diff)
downloademacs-59ce725a3b68cbc324f01bc8dc5f9e07286431d1.tar.gz
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-987
Diffstat (limited to 'lisp/vc-cvs.el')
-rw-r--r--lisp/vc-cvs.el9
1 files changed, 6 insertions, 3 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el
index 321f4e52805..d84c2839573 100644
--- a/lisp/vc-cvs.el
+++ b/lisp/vc-cvs.el
@@ -1,7 +1,7 @@
;;; vc-cvs.el --- non-resident support for CVS version-control
;; Copyright (C) 1995, 1998, 1999, 2000, 2001, 2002, 2003,
-;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc.
+;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc.
;; Author: FSF (see vc.el for full credits)
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
@@ -648,11 +648,14 @@ systime, or nil if there is none."
bol (1+ bol) 'vc-cvs-annotate-time
(setq cache (cons
;; Position at end makes for nicer overlay result.
- (match-end 0)
+ ;; Don't put actual buffer pos here, but only relative
+ ;; distance, so we don't ever move backward in the
+ ;; goto-char below, even if the text is moved.
+ (- (match-end 0) (match-beginning 0))
(vc-annotate-convert-time
(encode-time 0 0 0 day month year))))))))
(when cache
- (goto-char (car cache)) ; fontify from here to eol
+ (goto-char (+ bol (car cache))) ; Fontify from here to eol.
(cdr cache)))) ; days (float)
(defun vc-cvs-annotate-extract-revision-at-line ()