Commit 5eac0c02 authored by Leo Liu's avatar Leo Liu
Browse files

Fix infinite loop in python-end-of-statement

http://debbugs.gnu.org/10788
parent f82cb659
2012-02-11 Leo Liu <sdl.web@gmail.com>
* progmodes/python.el (python-end-of-statement): Fix infinite
loop. (Bug#10788)
2012-02-10 Glenn Morris <rgm@gnu.org>
* international/mule-cmds.el (unify-8859-on-encoding-mode)
......
......@@ -1004,9 +1004,10 @@ On a comment line, go to end of line."
(error (goto-char pos) (end-of-line)))))
((python-skip-out t s))))
(end-of-line))
(unless comment
(eq ?\\ (char-before)))) ; Line continued?
(end-of-line 2)) ; Try next line.
(and (not comment)
(not (eobp))
(eq ?\\ (char-before)))) ; Line continued?
(end-of-line 2)) ; Try next line.
(point))
(defun python-previous-statement (&optional count)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment