* lisp/progmodes/python.el (python-fill-paren): Don't inf-loop at EOB.
Fixes: debbugs:18462
This commit is contained in:
parent
572fe798cd
commit
d3b7a90bc2
2 changed files with 9 additions and 2 deletions
|
@ -1,3 +1,8 @@
|
|||
2014-09-30 Leonardo Nobrega <leonobr@gmail.com> (tiny change)
|
||||
|
||||
* progmodes/python.el (python-fill-paren): Don't inf-loop at EOB
|
||||
(bug#18462).
|
||||
|
||||
2014-09-27 Stefan Monnier <monnier@iro.umontreal.ca>
|
||||
|
||||
* emacs-lisp/package.el (package-check-signature): Default to nil if
|
||||
|
|
|
@ -3107,7 +3107,8 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'."
|
|||
(end-of-line)
|
||||
(when (not (python-syntax-context 'paren))
|
||||
(skip-syntax-backward "^)")))
|
||||
(while (python-syntax-context 'paren)
|
||||
(while (and (python-syntax-context 'paren)
|
||||
(not (eobp)))
|
||||
(goto-char (1+ (point-marker))))
|
||||
(point-marker)))
|
||||
(let ((paragraph-start "\f\\|[ \t]*$")
|
||||
|
@ -3118,7 +3119,8 @@ JUSTIFY should be used (if applicable) as in `fill-paragraph'."
|
|||
(while (not (eobp))
|
||||
(forward-line 1)
|
||||
(python-indent-line)
|
||||
(goto-char (line-end-position)))) t)
|
||||
(goto-char (line-end-position))))
|
||||
t)
|
||||
|
||||
|
||||
;;; Skeletons
|
||||
|
|
Loading…
Add table
Reference in a new issue