* progmodes/python.el (python-mode): Don't impose font-lock.
authorStefan Monnier <monnier@iro.umontreal.ca>
Mon, 3 Jan 2011 03:49:13 +0000 (22:49 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Mon, 3 Jan 2011 03:49:13 +0000 (22:49 -0500)
Fixes: debbugs:3628

lisp/ChangeLog
lisp/progmodes/python.el

index 6ec62fe..1f522ff 100644 (file)
@@ -1,3 +1,7 @@
+2011-01-03  Stefan Monnier  <monnier@iro.umontreal.ca>
+
+       * progmodes/python.el (python-mode): Don't impose font-lock (bug#3628).
+
 2011-01-02  Stefan Monnier  <monnier@iro.umontreal.ca>
 
        * files.el (file-local-variables-alist):
index d05f352..d21137b 100644 (file)
@@ -2552,7 +2552,6 @@ with skeleton expansions for compound statement templates.
         (^ '(- (1+ (current-indentation))))))
   ;; Python defines TABs as being 8-char wide.
   (set (make-local-variable 'tab-width) 8)
-  (unless font-lock-mode (font-lock-mode 1))
   (when python-guess-indent (python-guess-indent))
   ;; Let's make it harder for the user to shoot himself in the foot.
   (unless (= tab-width python-indent)