diff options
| author | André Spiegel | 2004-01-20 17:41:18 +0000 |
|---|---|---|
| committer | André Spiegel | 2004-01-20 17:41:18 +0000 |
| commit | f2a2e61bb2bde59f656ca7fa0576cc15606df28d (patch) | |
| tree | 20ad7d8e8dc165c223b371fec06d88e046c832a4 | |
| parent | 1b5a73430e988671570d8fb4efa4c02952ade0fc (diff) | |
| download | emacs-f2a2e61bb2bde59f656ca7fa0576cc15606df28d.tar.gz emacs-f2a2e61bb2bde59f656ca7fa0576cc15606df28d.zip | |
* vc-cvs.el (vc-cvs-annotate-extract-revision-at-line): New
function.
| -rw-r--r-- | lisp/vc-cvs.el | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/lisp/vc-cvs.el b/lisp/vc-cvs.el index 048cb6ccfb4..400a1ffb105 100644 --- a/lisp/vc-cvs.el +++ b/lisp/vc-cvs.el | |||
| @@ -5,7 +5,7 @@ | |||
| 5 | ;; Author: FSF (see vc.el for full credits) | 5 | ;; Author: FSF (see vc.el for full credits) |
| 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> | 6 | ;; Maintainer: Andre Spiegel <spiegel@gnu.org> |
| 7 | 7 | ||
| 8 | ;; $Id$ | 8 | ;; $Id: vc-cvs.el,v 1.66 2003/10/01 13:22:53 fx Exp $ |
| 9 | 9 | ||
| 10 | ;; This file is part of GNU Emacs. | 10 | ;; This file is part of GNU Emacs. |
| 11 | 11 | ||
| @@ -625,6 +625,14 @@ systime, or nil if there is none." | |||
| 625 | (beginning-of-line nil) | 625 | (beginning-of-line nil) |
| 626 | (vc-cvs-annotate-time)))))) | 626 | (vc-cvs-annotate-time)))))) |
| 627 | 627 | ||
| 628 | (defun vc-cvs-annotate-extract-revision-at-line () | ||
| 629 | (save-excursion | ||
| 630 | (beginning-of-line) | ||
| 631 | (if (re-search-forward "^\\([0-9]+\\.[0-9]+\\(\\.[0-9]+\\)*\\) +(" | ||
| 632 | (line-end-position) t) | ||
| 633 | (match-string-no-properties 1) | ||
| 634 | nil))) | ||
| 635 | |||
| 628 | ;;; | 636 | ;;; |
| 629 | ;;; Snapshot system | 637 | ;;; Snapshot system |
| 630 | ;;; | 638 | ;;; |