`python-fill-paragraph' filling fixup when font-lock is disabled

* progmodes/python.el (python-fill-paragraph): Make
python-fill-region in a multiline string work when font-lock is
disabled.

Fixes: debbugs:7018
This commit is contained in:
Nathan Weizenbaum 2012-04-10 13:27:44 +02:00 committed by Lars Magne Ingebrigtsen
parent a967e26b40
commit 8f33b5f873
2 changed files with 7 additions and 1 deletions

View file

@ -1,3 +1,9 @@
2012-04-10 Nathan Weizenbaum <nweiz@google.com>
* progmodes/python.el (python-fill-paragraph): Make
python-fill-region in a multiline string work when font-lock is
disabled (bug#7018).
2012-04-10 Laimonas Vėbra <laimonas.vebra@gmail.com> (tiny change)
* language/european.el (cp775): Added oem/legacy (en)coding on

View file

@ -1959,7 +1959,7 @@ the string's indentation."
;; paragraph in a multi-line string properly, so narrow
;; to the string and then fill around (the end of) the
;; current line.
((eq t (nth 3 syntax)) ; in fenced string
((nth 3 syntax) ; in fenced string
(goto-char (nth 8 syntax)) ; string start
(setq start (line-beginning-position))
(setq end (condition-case () ; for unbalanced quotes