Running Python 3, C-c C-c after syntax error correction still jumps to the old exception line

Bug #1170988 reported by Kaushal Modi
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
Medium
Andreas Roehler

Bug Description

Hi,

Here'e my setup:
* GNU emacs 24.3 on cygwin
* python-mode 6.1.1
* python 3.2.3

* Python customization in .emacs
(add-to-list 'load-path "~/.emacs.d/python-mode.el-6.1.1/")
(setq py-install-directory "~/.emacs.d/python-mode.el-6.1.1/")
(require 'python-mode)
(setq-default py-shell-name "python3")
(setq-default py-which-bufname "Python3")
(setq py-force-py-shell-name-p t)
; switch to the interpreter after executing code
(setq py-shell-switch-buffers-on-execute-p t)
(setq py-switch-buffers-on-execute-p t)
; don't split windows
(setq py-split-windows-on-execute-p nil)
; try to automagically figure out indentation
(setq py-smart-indentation t)

I had a syntax error in my code and executing it (C-c C-c shortcut in emacs) showed the error and the cursor jumped to the code buffer to the exact line after the error.

After the fix, the code ran fine in the Python3 output buffer, but the cursor still jumps back to the same old line in the code buffer that had the syntax error. If I exit emacs and rerun the code, that does not happen.

Is there a python-mode variable that can be customized to prevent this?

Thanks.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
milestone: none → 6.1.2
importance: Undecided → Medium
Changed in python-mode:
status: New → Fix Committed
Changed in python-mode:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.