* progmodes/python.el (run-python-internal): Disable font lock for
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Tue, 31 Jul 2012 03:31:10 +0000 (00:31 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Tue, 31 Jul 2012 03:31:10 +0000 (00:31 -0300)
internal shells.

lisp/ChangeLog
lisp/progmodes/python.el

index 8401578..20b31e1 100644 (file)
@@ -1,3 +1,8 @@
+2012-07-31  Fabián Ezequiel Gallina  <fgallina@cuca>
+
+       * progmodes/python.el (run-python-internal): Disable font lock for
+       internal shells.
+
 2012-07-30  Stefan Merten  <smerten@oekonux.de>
 
        * rst.el: Silence `checkdoc-ispell'.
index 4617ecc..001c28a 100644 (file)
@@ -1615,11 +1615,12 @@ with user shells.  Runs the hook
 `inferior-python-mode-hook' (after the `comint-mode-hook' is
 run).  \(Type \\[describe-mode] in the process buffer for a list
 of commands.)"
-  (set-process-query-on-exit-flag
-   (get-buffer-process
-    (python-shell-make-comint
-     (python-shell-parse-command)
-     (python-shell-internal-get-process-name))) nil))
+  (let ((python-shell-enable-font-lock nil))
+    (set-process-query-on-exit-flag
+     (get-buffer-process
+      (python-shell-make-comint
+       (python-shell-parse-command)
+       (python-shell-internal-get-process-name))) nil)))
 
 (defun python-shell-get-process ()
   "Get inferior Python process for current buffer and return it."