Mercurial > emacs
diff lisp/diff-mode.el @ 104564:9d31b5972e9e
(diff-find-source-location): Avoid goto-line.
author | Stefan Monnier <monnier@iro.umontreal.ca> |
---|---|
date | Mon, 24 Aug 2009 17:11:20 +0000 |
parents | 10b0e119e49a |
children | afa0e028ba97 |
line wrap: on
line diff
--- a/lisp/diff-mode.el Mon Aug 24 11:43:59 2009 +0000 +++ b/lisp/diff-mode.el Mon Aug 24 17:11:20 2009 +0000 @@ -1598,7 +1598,7 @@ (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.