1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

(diff-find-source-location): Avoid goto-line.

This commit is contained in:
Stefan Monnier 2009-08-24 17:11:20 +00:00
parent dbd9624e5a
commit 88421f3e11
2 changed files with 5 additions and 1 deletions

View file

@ -1598,7 +1598,7 @@ NOPROMPT, if non-nil, means not to prompt the user."
(when (> (prefix-numeric-value other-file) 8)
(setq diff-jump-to-old-file other))
(with-current-buffer buf
(goto-line (string-to-number line))
(goto-char (point-min)) (forward-line (1- (string-to-number line)))
(let* ((orig-pos (point))
(switched nil)
;; FIXME: Check for case where both OLD and NEW are found.