Function: python-shell-font-lock-get-or-create-buffer

python-shell-font-lock-get-or-create-buffer is a byte-compiled function defined in python.el.gz.

Signature

(python-shell-font-lock-get-or-create-buffer)

Documentation

Get or create a font-lock buffer for current inferior process.

Source Code

;; Defined in /usr/src/emacs/lisp/progmodes/python.el.gz
(defun python-shell-font-lock-get-or-create-buffer ()
  "Get or create a font-lock buffer for current inferior process."
  (python-shell-with-shell-buffer
    (if python-shell--font-lock-buffer
        python-shell--font-lock-buffer
      (let ((process-name
             (process-name (get-buffer-process (current-buffer)))))
        (generate-new-buffer
         (format " *%s-font-lock*" process-name))))))