aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
authorFabián Ezequiel Gallina2012-07-31 00:31:10 -0300
committerFabián Ezequiel Gallina2012-07-31 00:31:10 -0300
commitd77149619bc8407dff2532e9810348ef686d1e28 (patch)
tree53d0a6f198e0b301c6f5d7f85a95fc7ba60f0b5b /lisp/progmodes/python.el
parent4650d5fa0e1eeb1bcd504fdf5025db3ed146f710 (diff)
downloademacs-d77149619bc8407dff2532e9810348ef686d1e28.tar.gz
emacs-d77149619bc8407dff2532e9810348ef686d1e28.zip
* progmodes/python.el (run-python-internal): Disable font lock for
internal shells.
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el11
1 files changed, 6 insertions, 5 deletions
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
1615`inferior-python-mode-hook' (after the `comint-mode-hook' is 1615`inferior-python-mode-hook' (after the `comint-mode-hook' is
1616run). \(Type \\[describe-mode] in the process buffer for a list 1616run). \(Type \\[describe-mode] in the process buffer for a list
1617of commands.)" 1617of commands.)"
1618 (set-process-query-on-exit-flag 1618 (let ((python-shell-enable-font-lock nil))
1619 (get-buffer-process 1619 (set-process-query-on-exit-flag
1620 (python-shell-make-comint 1620 (get-buffer-process
1621 (python-shell-parse-command) 1621 (python-shell-make-comint
1622 (python-shell-internal-get-process-name))) nil)) 1622 (python-shell-parse-command)
1623 (python-shell-internal-get-process-name))) nil)))
1623 1624
1624(defun python-shell-get-process () 1625(defun python-shell-get-process ()
1625 "Get inferior Python process for current buffer and return it." 1626 "Get inferior Python process for current buffer and return it."