mirror of
https://github.com/git/git.git
synced 2024-11-25 02:44:48 +08:00
git-blame.el: Do not use goto-line in lisp code
goto-line is a user-level command, instead use the lisp-level construct recommended in Emacs documentation. Signed-off-by: Rüdiger Sonderfeld <ruediger@c-plusplus.de> Signed-off-by: Lawrence Mitchell <wence@gmx.li> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:
parent
fbfe5de5bd
commit
5d7da9a944
@ -389,7 +389,8 @@ See also function `git-blame-mode'."
|
||||
(set-buffer git-blame-file)
|
||||
(let ((inhibit-point-motion-hooks t)
|
||||
(inhibit-modification-hooks t))
|
||||
(goto-line start-line)
|
||||
(goto-char (point-min))
|
||||
(forward-line (1- start-line))
|
||||
(let* ((start (point))
|
||||
(end (progn (forward-line num-lines) (point)))
|
||||
(ovl (make-overlay start end))
|
||||
|
Loading…
Reference in New Issue
Block a user