Skip to content

Commit 5d7da9a

Browse files
ruedigergitster
authored andcommitted
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 <[email protected]> Signed-off-by: Lawrence Mitchell <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent fbfe5de commit 5d7da9a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

contrib/emacs/git-blame.el

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -389,7 +389,8 @@ See also function `git-blame-mode'."
389389
(set-buffer git-blame-file)
390390
(let ((inhibit-point-motion-hooks t)
391391
(inhibit-modification-hooks t))
392-
(goto-line start-line)
392+
(goto-char (point-min))
393+
(forward-line (1- start-line))
393394
(let* ((start (point))
394395
(end (progn (forward-line num-lines) (point)))
395396
(ovl (make-overlay start end))

0 commit comments

Comments
 (0)