Function: python-shell-font-lock-kill-buffer
python-shell-font-lock-kill-buffer is a byte-compiled function defined
in python.el.gz.
Signature
(python-shell-font-lock-kill-buffer)
Documentation
Kill the font-lock buffer safely.
Source Code
;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-shell-font-lock-kill-buffer ()
"Kill the font-lock buffer safely."
(when (and python-shell--font-lock-buffer
(buffer-live-p python-shell--font-lock-buffer))
(kill-buffer python-shell--font-lock-buffer)
(when (derived-mode-p 'inferior-python-mode)
(setq python-shell--font-lock-buffer nil))))