diff options
| author | Leo Liu | 2012-02-11 12:20:16 +0800 |
|---|---|---|
| committer | Leo Liu | 2012-02-11 12:20:16 +0800 |
| commit | 5eac0c026f56f6159d871ea92d869eef56bf66ff (patch) | |
| tree | a83d59a9996025ff56b8c942b3c5f2b2b6cc22b4 | |
| parent | f82cb659425f94a36634a0d1637e4dd899a973df (diff) | |
| download | emacs-5eac0c026f56f6159d871ea92d869eef56bf66ff.tar.gz emacs-5eac0c026f56f6159d871ea92d869eef56bf66ff.zip | |
Fix infinite loop in python-end-of-statement
http://debbugs.gnu.org/10788
| -rw-r--r-- | lisp/ChangeLog | 5 | ||||
| -rw-r--r-- | lisp/progmodes/python.el | 7 |
2 files changed, 9 insertions, 3 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8b3c8196bc8..c873cac2ffe 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-02-11 Leo Liu <sdl.web@gmail.com> | ||
| 2 | |||
| 3 | * progmodes/python.el (python-end-of-statement): Fix infinite | ||
| 4 | loop. (Bug#10788) | ||
| 5 | |||
| 1 | 2012-02-10 Glenn Morris <rgm@gnu.org> | 6 | 2012-02-10 Glenn Morris <rgm@gnu.org> |
| 2 | 7 | ||
| 3 | * international/mule-cmds.el (unify-8859-on-encoding-mode) | 8 | * international/mule-cmds.el (unify-8859-on-encoding-mode) |
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 15d98ce48af..3ef872d26eb 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el | |||
| @@ -1004,9 +1004,10 @@ On a comment line, go to end of line." | |||
| 1004 | (error (goto-char pos) (end-of-line))))) | 1004 | (error (goto-char pos) (end-of-line))))) |
| 1005 | ((python-skip-out t s)))) | 1005 | ((python-skip-out t s)))) |
| 1006 | (end-of-line)) | 1006 | (end-of-line)) |
| 1007 | (unless comment | 1007 | (and (not comment) |
| 1008 | (eq ?\\ (char-before)))) ; Line continued? | 1008 | (not (eobp)) |
| 1009 | (end-of-line 2)) ; Try next line. | 1009 | (eq ?\\ (char-before)))) ; Line continued? |
| 1010 | (end-of-line 2)) ; Try next line. | ||
| 1010 | (point)) | 1011 | (point)) |
| 1011 | 1012 | ||
| 1012 | (defun python-previous-statement (&optional count) | 1013 | (defun python-previous-statement (&optional count) |