]> git.eshelyaron.com Git - emacs.git/commitdiff
`python-fill-paragraph' filling fixup when font-lock is disabled
authorNathan Weizenbaum <nweiz@google.com>
Tue, 10 Apr 2012 11:27:44 +0000 (13:27 +0200)
committerLars Magne Ingebrigtsen <larsi@gnus.org>
Tue, 10 Apr 2012 11:27:44 +0000 (13:27 +0200)
* progmodes/python.el (python-fill-paragraph): Make
python-fill-region in a multiline string work when font-lock is
disabled.

Fixes: debbugs:7018
lisp/ChangeLog
lisp/progmodes/python.el

index d46de76bd4b7c7509e181d7650d9787f303c073d..fee5e34942ca5fc915ee5571666698e0c6e19f27 100644 (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
index f7566c31b41871526f34d70b94ac9b6d28dffdde..09b8999362613d85e7b8da4f7a2904bf334479c5 100644 (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