py-compute-indentation hits infinite loop on file with just a triple-quoted string

Bug #826044 reported by Terry Jones
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-mode.el
Fix Released
High
Andreas Roehler

Bug Description

I just downloaded and installed 6.0.1. I put

doctest-mode.el
highlight-indentation.el
pycomplete.el
python-mode.el

into a dir on my load-path and byte compile them.

Then I start emacs, set debug-on-error to t, visit a new .py file, and type:

"""
hey
"""
RET

and on the RET, I get thrown into the debugger:

Debugger entered--Lisp error: (error "Variable binding depth exceeds max-specpdl-size")
  py-compute-indentation(14 5)
  py-compute-indentation(14 5)

  ;; about a hundred of these lines appear....

  py-compute-indentation(14 5)
  py-compute-indentation(14 5)
  py-compute-indentation(14)
  py-indent-line()
  indent-according-to-mode()
  newline-and-indent()
  call-interactively(newline-and-indent nil nil)

M-x py-version shows 6.0.1, as expected.

Changed in python-mode:
assignee: nobody → Andreas Roehler (a-roehler)
importance: Undecided → High
status: New → In Progress
milestone: none → 6.1
Changed in python-mode:
status: In Progress → Fix Committed
Revision history for this message
Andreas Roehler (a-roehler) wrote :

Hi Terry,

release is delivered, thanks for the report,

Andreas

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.