Variable: comint-indirect-setup-function
comint-indirect-setup-function is a buffer-local variable defined in
comint.el.gz.
Documentation
Function to set up an indirect comint fontification buffer.
This function is called by comint-indirect-buffer with zero
arguments after making an indirect buffer. It is usually set to
a major-mode command whose font-locking and indentation are
desired for input text. In order to prevent possible mode hooks
from running, the variable delay-mode-hooks(var)/delay-mode-hooks(fun) is set to t prior
to calling this function and change-major-mode-hook along with
after-change-major-mode-hook are bound to nil.
Source Code
;; Defined in /usr/src/emacs/lisp/comint.el.gz
;;; Input fontification and indentation through an indirect buffer
;;============================================================================
;;
;; Modes derived from `comint-mode' can set up fontification and
;; indentation of input text with the help of an indirect buffer whose
;; major mode and font-lock settings are set accordingly.
(defvar-local comint-indirect-setup-function nil
"Function to set up an indirect comint fontification buffer.
This function is called by `comint-indirect-buffer' with zero
arguments after making an indirect buffer. It is usually set to
a major-mode command whose font-locking and indentation are
desired for input text. In order to prevent possible mode hooks
from running, the variable `delay-mode-hooks' is set to t prior
to calling this function and `change-major-mode-hook' along with
`after-change-major-mode-hook' are bound to nil.")