diff lisp/progmodes/python.el @ 104774:468b7fa34d2c

Use forward-line rather than goto-line.
author Glenn Morris <rgm@gnu.org>
date Tue, 01 Sep 2009 03:18:44 +0000
parents 2e0765155e47
children bd2966850aac
line wrap: on
line diff
--- a/lisp/progmodes/python.el	Tue Sep 01 03:17:28 2009 +0000
+++ b/lisp/progmodes/python.el	Tue Sep 01 03:18:44 2009 +0000
@@ -2203,7 +2203,8 @@
     (unless file (error "Don't know where `%s' is defined" name))
     (pop-to-buffer (find-file-noselect file))
     (when (integerp line)
-      (goto-line line))))
+      (goto-char (point-min))
+      (forward-line (1- line)))))
 
 ;;;; Skeletons
 
@@ -2614,7 +2615,8 @@
                   target_buffer (cadr target)
                   target_fname (buffer-file-name target_buffer))
             (switch-to-buffer-other-window target_buffer)
-            (goto-line target_lineno)
+            (goto-char (point-min))
+            (forward-line (1- target_lineno))
             (message "pdbtrack: line %s, file %s" target_lineno target_fname)
             (python-pdbtrack-overlay-arrow t)
             (pop-to-buffer origbuf t)