diff options
| author | Stefan Monnier | 2008-01-05 05:19:00 +0000 |
|---|---|---|
| committer | Stefan Monnier | 2008-01-05 05:19:00 +0000 |
| commit | d58107b04c1bbc16817d2c15a4771d361d74efe7 (patch) | |
| tree | 79cdd28be196d806d69090a023a644fb94e6c5ab | |
| parent | b06a075ac53d3b1cf000ddcd2be2ef3e19ac9f26 (diff) | |
| download | emacs-d58107b04c1bbc16817d2c15a4771d361d74efe7.tar.gz emacs-d58107b04c1bbc16817d2c15a4771d361d74efe7.zip | |
(vc-cvs-annotate-time): Don't move backward when text
gets inserted out-of-order.
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/vc-cvs.el | 9 |
2 files changed, 11 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d09d12add00..b6e1b937314 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2008-01-05 Stefan Monnier <monnier@iro.umontreal.ca> | ||
| 2 | |||
| 3 | * vc-cvs.el (vc-cvs-annotate-time): Don't move backward when text | ||
| 4 | gets inserted out-of-order. | ||
| 5 | |||
| 1 | 2008-01-04 Riccardo Murri <riccardo.murri@gmail.com> | 6 | 2008-01-04 Riccardo Murri <riccardo.murri@gmail.com> |
| 2 | 7 | ||
| 3 | * vc-bzr.el: Copyright and version headers update. | 8 | * vc-bzr.el: Copyright and version headers update. |
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index a0eb2609ade..47507e503ce 100644 --- a/lisp/vc-cvs.el +++ b/lisp/vc-cvs.el | |||
| @@ -1,7 +1,7 @@ | |||
| 1 | ;;; vc-cvs.el --- non-resident support for CVS version-control | 1 | ;;; vc-cvs.el --- non-resident support for CVS version-control |
| 2 | 2 | ||
| 3 | ;; Copyright (C) 1995, 1998, 1999, 2000, 2001, 2002, 2003, | 3 | ;; Copyright (C) 1995, 1998, 1999, 2000, 2001, 2002, 2003, |
| 4 | ;; 2004, 2005, 2006, 2007 Free Software Foundation, Inc. | 4 | ;; 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. |
| 5 | 5 | ||
| 6 | ;; Author: FSF (see vc.el for full credits) | 6 | ;; Author: FSF (see vc.el for full credits) |
| 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 7 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| @@ -629,11 +629,14 @@ systime, or nil if there is none." | |||
| 629 | bol (1+ bol) 'vc-cvs-annotate-time | 629 | bol (1+ bol) 'vc-cvs-annotate-time |
| 630 | (setq cache (cons | 630 | (setq cache (cons |
| 631 | ;; Position at end makes for nicer overlay result. | 631 | ;; Position at end makes for nicer overlay result. |
| 632 | (match-end 0) | 632 | ;; Don't put actual buffer pos here, but only relative |
| 633 | ;; distance, so we don't ever move backward in the | ||
| 634 | ;; goto-char below, even if the text is moved. | ||
| 635 | (- (match-end 0) (match-beginning 0)) | ||
| 633 | (vc-annotate-convert-time | 636 | (vc-annotate-convert-time |
| 634 | (encode-time 0 0 0 day month year)))))))) | 637 | (encode-time 0 0 0 day month year)))))))) |
| 635 | (when cache | 638 | (when cache |
| 636 | (goto-char (car cache)) ; fontify from here to eol | 639 | (goto-char (+ bol (car cache))) ; Fontify from here to eol. |
| 637 | (cdr cache)))) ; days (float) | 640 | (cdr cache)))) ; days (float) |
| 638 | 641 | ||
| 639 | (defun vc-cvs-annotate-extract-revision-at-line () | 642 | (defun vc-cvs-annotate-extract-revision-at-line () |