Function: python-shell-font-lock-cleanup-buffer

python-shell-font-lock-cleanup-buffer is an interactive and byte-compiled function defined in python.el.gz.

Signature

(python-shell-font-lock-cleanup-buffer)

Documentation

Cleanup the font-lock buffer.

Provided as a command because this might be handy if something goes wrong and syntax highlighting in the shell gets messed up.

Key Bindings

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-shell-font-lock-cleanup-buffer ()
  "Cleanup the font-lock buffer.
Provided as a command because this might be handy if something
goes wrong and syntax highlighting in the shell gets messed up."
  (interactive)
  (python-shell-with-shell-buffer
    (python-shell-font-lock-with-font-lock-buffer
      (erase-buffer))))