# HG changeset patch # User Andr Spiegel # Date 1074620478 0 # Node ID 74e44ab76fa570a281e625342257025a6b6fb3bb # Parent 2f41b6c48585e6165a8fdaf5e147aecaede96f16 * vc-cvs.el (vc-cvs-annotate-extract-revision-at-line): New function. diff -r 2f41b6c48585 -r 74e44ab76fa5 lisp/vc-cvs.el --- a/lisp/vc-cvs.el Tue Jan 20 17:39:09 2004 +0000 +++ b/lisp/vc-cvs.el Tue Jan 20 17:41:18 2004 +0000 @@ -5,7 +5,7 @@ ;; Author: FSF (see vc.el for full credits) ;; Maintainer: Andre Spiegel -;; $Id$ +;; $Id: vc-cvs.el,v 1.66 2003/10/01 13:22:53 fx Exp $ ;; This file is part of GNU Emacs. @@ -625,6 +625,14 @@ (beginning-of-line nil) (vc-cvs-annotate-time)))))) +(defun vc-cvs-annotate-extract-revision-at-line () + (save-excursion + (beginning-of-line) + (if (re-search-forward "^\\([0-9]+\\.[0-9]+\\(\\.[0-9]+\\)*\\) +(" + (line-end-position) t) + (match-string-no-properties 1) + nil))) + ;;; ;;; Snapshot system ;;;