mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-30 12:21:25 -08:00
* vc-cvs.el (vc-cvs-annotate-extract-revision-at-line): New
function.
This commit is contained in:
parent
1b5a73430e
commit
f2a2e61bb2
1 changed files with 9 additions and 1 deletions
|
|
@ -5,7 +5,7 @@
|
|||
;; Author: FSF (see vc.el for full credits)
|
||||
;; Maintainer: Andre Spiegel <spiegel@gnu.org>
|
||||
|
||||
;; $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 @@ systime, or nil if there is none."
|
|||
(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
|
||||
;;;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue