]> git.eshelyaron.com Git - emacs.git/commit
Robust shell syntax highlighting. (Bug#18084, Bug#16875)
authorFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 26 Jul 2014 23:43:51 +0000 (20:43 -0300)
committerFabián Ezequiel Gallina <fgallina@gnu.org>
Sat, 26 Jul 2014 23:43:51 +0000 (20:43 -0300)
commit60cc81af68080a8d1edb7584ce0966754595e187
treef1cc7f5b5194843d85d125b2ffd651679b05ca2e
parent9e9f8582a893f1e97b1f8955f69b96f969ee1f85
Robust shell syntax highlighting.  (Bug#18084, Bug#16875)

* lisp/progmodes/python.el:
(python-shell-prompt-input-regexps): Add iPython block prompt.
(python-shell-output-syntax-table): Delete var.
(python-shell-font-lock-with-font-lock-buffer): New macro.
(python-shell-font-lock-get-or-create-buffer)
(python-shell-font-lock-kill-buffer)
(python-shell-font-lock-cleanup-buffer)
(python-shell-font-lock-post-command-hook)
(python-shell-font-lock-turn-off): New functions.
(python-shell-font-lock-turn-on): New function.
(inferior-python-mode): Use it.
(python-shell-font-lock-toggle): New command.
(python-shell-font-lock-enable): Rename from
python-shell-enable-font-lock.
(run-python-internal): Use it.
(python-shell-font-lock-comint-output-filter-function): New function.
(python-shell-comint-end-of-output-p): New function.
(python-shell-output-filter): Use it.
(python-util-comint-last-prompt): New function.
(python-util-text-properties-replace-name): New function.
lisp/ChangeLog
lisp/progmodes/python.el