From: Fabián Ezequiel Gallina Date: Tue, 31 Jul 2012 03:31:10 +0000 (-0300) Subject: * progmodes/python.el (run-python-internal): Disable font lock for X-Git-Tag: emacs-24.2.90~979 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d77149619bc8407dff2532e9810348ef686d1e28;p=emacs.git * progmodes/python.el (run-python-internal): Disable font lock for internal shells. --- diff --git a/lisp/ChangeLog b/lisp/ChangeLog index 8401578abf4..20b31e1f9f4 100644 --- a/lisp/ChangeLog +++ b/lisp/ChangeLog @@ -1,3 +1,8 @@ +2012-07-31 Fabián Ezequiel Gallina + + * progmodes/python.el (run-python-internal): Disable font lock for + internal shells. + 2012-07-30 Stefan Merten * rst.el: Silence `checkdoc-ispell'. diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index 4617ecc420d..001c28a00fa 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -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."