aboutsummaryrefslogtreecommitdiffstats
path: root/lisp
diff options
context:
space:
mode:
authorAndré Spiegel1996-09-08 11:52:05 +0000
committerAndré Spiegel1996-09-08 11:52:05 +0000
commit6dfe5fe02d27ef3bee4e66fab056cfb02bba1247 (patch)
treefbd4e8bdfaffe6a95476ac59448954b17ac03783 /lisp
parent4893a43797d4f8e16907c62a902a3b2cf3ee522b (diff)
downloademacs-6dfe5fe02d27ef3bee4e66fab056cfb02bba1247.tar.gz
emacs-6dfe5fe02d27ef3bee4e66fab056cfb02bba1247.zip
(vc-print-log): Move point to the log entry of the current version.
Diffstat (limited to 'lisp')
-rw-r--r--lisp/vc.el9
1 files changed, 9 insertions, 0 deletions
diff --git a/lisp/vc.el b/lisp/vc.el
index c1d946a3ac7..4fb84ab1356 100644
--- a/lisp/vc.el
+++ b/lisp/vc.el
@@ -1572,6 +1572,15 @@ levels in the snapshot."
1572 (if (looking-at "[\b\t\n\v\f\r ]+") 1572 (if (looking-at "[\b\t\n\v\f\r ]+")
1573 (delete-char (- (match-end 0) (match-beginning 0)))) 1573 (delete-char (- (match-end 0) (match-beginning 0))))
1574 (shrink-window-if-larger-than-buffer) 1574 (shrink-window-if-larger-than-buffer)
1575 ;; move point to the log entry for the current version
1576 (if (not (eq (vc-backend file) 'SCCS))
1577 (let ((pos (re-search-forward
1578 ;; also match some context, for safety
1579 (concat "----\nrevision " (vc-workfile-version file)
1580 "\\(\tlocked by:.*\n\\|\n\\)date: ") nil t)))
1581 (if pos (progn (goto-char pos)
1582 (beginning-of-line)
1583 (forward-line -1)))))
1575 ) 1584 )
1576 (vc-registration-error buffer-file-name) 1585 (vc-registration-error buffer-file-name)
1577 ) 1586 )