From: Nathan Weizenbaum Date: Tue, 10 Apr 2012 11:27:44 +0000 (+0200) Subject: `python-fill-paragraph' filling fixup when font-lock is disabled X-Git-Tag: emacs-24.2.90~471^2~365^2~12 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8f33b5f8734810e2feb0036bd9b0b34f51f7bc17;p=emacs.git `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 --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index d46de76bd4b..fee5e34942c 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,9 @@ +2012-04-10 Nathan Weizenbaum + + * 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 (tiny change) * language/european.el (cp775): Added oem/legacy (en)coding on diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f7566c31b41..09b89993626 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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