Function: comint--fontify-input-off

comint--fontify-input-off is a byte-compiled function defined in comint.el.gz.

Signature

(comint--fontify-input-off)

Documentation

Disable input fontification in the current comint buffer.

Source Code

;; Defined in /usr/src/emacs/lisp/comint.el.gz
(defun comint--fontify-input-off ()
  "Disable input fontification in the current comint buffer."
  (remove-function (local 'font-lock-fontify-region-function)
                   #'comint--fontify-input-fontify-region)
  (remove-hook 'before-change-functions
               #'comint--fontify-input-ppss-flush-indirect t)

  ;; Reset contextual fontification
  (when comint--fontify-input-saved-jit-lock-contextually
    (setq-local jit-lock-contextually
                comint--fontify-input-saved-jit-lock-contextually)
    (setq comint--fontify-input-saved-jit-lock-contextually nil)
    (when jit-lock-mode
      (jit-lock-mode t)))

  (font-lock-flush))