aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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 )