Subject: [Patch] Fix python-fill-paragraph when font-lock is disabled

From: Nathan Weizenbaum <[email-masked]>
Date: Thu, 29 Jul 2010 15:36:49 -0700

Package: emacs

[ resent from emacs-devel ]

Hi,

Attached is a patch that makes python-fill-region in a multiline string work
when font-lock is disabled. The old version checked that (nth 3 syntax) was
explicitly t, rather than non-nil; this is the case when font-lock is
enabled, but when it's disabled (nth 3 syntax) is a number instead.
>From f187ecce1e2a86b8e712546a84f585ed5ff4d873 Mon Sep 17 00:00:00 2001
From: Nathan Weizenbaum <[email-masked]>
Date: Thu, 29 Jul 2010 11:31:02 -0700
Subject: [PATCH] Fix python-fill-paragraph when font-lock is disabled.

---
 lisp/progmodes/python.el |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index 4e0f326..8d540be 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -1960,7 +1960,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
-- 
1.7.1