changeset 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 73bc53392b92
children 209d73c6ff96
files lisp/ChangeLog lisp/diff-mode.el
diffstat 2 files changed, 5 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/ChangeLog	Mon Aug 24 11:43:59 2009 +0000
+++ b/lisp/ChangeLog	Mon Aug 24 17:11:20 2009 +0000
@@ -1,3 +1,7 @@
+2009-08-24  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+	* diff-mode.el (diff-find-source-location): Avoid goto-line.
+
 2009-08-24  Kenichi Handa  <handa@m17n.org>
 
 	* language/ind-util.el (mapthread): Delete it.
--- 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.