From d77149619bc8407dff2532e9810348ef686d1e28 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Fabi=C3=A1n=20Ezequiel=20Gallina?= Date: Tue, 31 Jul 2012 00:31:10 -0300 Subject: [PATCH] * progmodes/python.el (run-python-internal): Disable font lock for internal shells. --- lisp/ChangeLog | 5 +++++ lisp/progmodes/python.el | 11 ++++++----- 2 files changed, 11 insertions(+), 5 deletions(-) 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." -- 2.39.2