diff options
author | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-08-24 17:11:20 +0000 |
---|---|---|
committer | Stefan Monnier <monnier@iro.umontreal.ca> | 2009-08-24 17:11:20 +0000 |
commit | 8795f5ceb7accdc219ca452805de11322bdf9699 (patch) | |
tree | 3ddafe9b32049147d6ecd06f2d301d0deb7fddf8 /lisp/diff-mode.el | |
parent | 0b4f970e2c4d1c79a906308471ef60fdb73cf120 (diff) | |
download | emacs-8795f5ceb7accdc219ca452805de11322bdf9699.tar.gz |
(diff-find-source-location): Avoid goto-line.
Diffstat (limited to 'lisp/diff-mode.el')
-rw-r--r-- | lisp/diff-mode.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/diff-mode.el b/lisp/diff-mode.el index 624b0ccfb3e..cf4947d20fd 100644 --- a/lisp/diff-mode.el +++ b/lisp/diff-mode.el @@ -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. |