mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-24 05:47:36 +00:00
(vc-print-log): Move point to the log entry of the current version.
This commit is contained in:
parent
4893a43797
commit
6dfe5fe02d
1 changed files with 9 additions and 0 deletions
|
|
@ -1572,6 +1572,15 @@ levels in the snapshot."
|
|||
(if (looking-at "[\b\t\n\v\f\r ]+")
|
||||
(delete-char (- (match-end 0) (match-beginning 0))))
|
||||
(shrink-window-if-larger-than-buffer)
|
||||
;; move point to the log entry for the current version
|
||||
(if (not (eq (vc-backend file) 'SCCS))
|
||||
(let ((pos (re-search-forward
|
||||
;; also match some context, for safety
|
||||
(concat "----\nrevision " (vc-workfile-version file)
|
||||
"\\(\tlocked by:.*\n\\|\n\\)date: ") nil t)))
|
||||
(if pos (progn (goto-char pos)
|
||||
(beginning-of-line)
|
||||
(forward-line -1)))))
|
||||
)
|
||||
(vc-registration-error buffer-file-name)
|
||||
)
|
||||
|
|
|
|||
Loading…
Reference in a new issue