aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Monnier2011-01-02 22:49:13 -0500
committerStefan Monnier2011-01-02 22:49:13 -0500
commit364df1cc7641e6787c09f83789c7f5f5bc5a6140 (patch)
treebd3a3c8310b6ac2f8b2882c12e7f4f57c81b2442
parentb218c6cdc14f8a944300e7aa7af06befdf4ff72e (diff)
downloademacs-364df1cc7641e6787c09f83789c7f5f5bc5a6140.tar.gz
emacs-364df1cc7641e6787c09f83789c7f5f5bc5a6140.zip
* progmodes/python.el (python-mode): Don't impose font-lock.
Fixes: debbugs:3628
-rw-r--r--lisp/ChangeLog4
-rw-r--r--lisp/progmodes/python.el1
2 files changed, 4 insertions, 1 deletions
diff --git a/lisp/ChangeLog b/lisp/ChangeLog
index 6ec62fe628f..1f522ff4b06 100644
--- a/lisp/ChangeLog
+++ b/lisp/ChangeLog
@@ -1,3 +1,7 @@
12011-01-03 Stefan Monnier <monnier@iro.umontreal.ca>
2
3 * progmodes/python.el (python-mode): Don't impose font-lock (bug#3628).
4
12011-01-02 Stefan Monnier <monnier@iro.umontreal.ca> 52011-01-02 Stefan Monnier <monnier@iro.umontreal.ca>
2 6
3 * files.el (file-local-variables-alist): 7 * files.el (file-local-variables-alist):
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d05f352ded6..d21137b3080 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -2552,7 +2552,6 @@ with skeleton expansions for compound statement templates.
2552 (^ '(- (1+ (current-indentation)))))) 2552 (^ '(- (1+ (current-indentation))))))
2553 ;; Python defines TABs as being 8-char wide. 2553 ;; Python defines TABs as being 8-char wide.
2554 (set (make-local-variable 'tab-width) 8) 2554 (set (make-local-variable 'tab-width) 8)
2555 (unless font-lock-mode (font-lock-mode 1))
2556 (when python-guess-indent (python-guess-indent)) 2555 (when python-guess-indent (python-guess-indent))
2557 ;; Let's make it harder for the user to shoot himself in the foot. 2556 ;; Let's make it harder for the user to shoot himself in the foot.
2558 (unless (= tab-width python-indent) 2557 (unless (= tab-width python-indent)