Function: font-lock-specified-p

font-lock-specified-p is a byte-compiled function defined in font-lock.el.gz.

Signature

(font-lock-specified-p MODE)

Documentation

Return non-nil if the current buffer is ready for fontification.

The MODE argument, if non-nil, means Font Lock mode is about to be enabled.

Source Code

;; Defined in /usr/src/emacs/lisp/font-lock.el.gz
(defvar-local font-lock-set-defaults nil) ; Whether we have set up defaults.

(defun font-lock-specified-p (mode)
  "Return non-nil if the current buffer is ready for fontification.
The MODE argument, if non-nil, means Font Lock mode is about to
be enabled."
  (or font-lock-defaults
      (and (boundp 'font-lock-keywords)
	   font-lock-keywords)
      (and mode
	   font-lock-set-defaults
	   font-lock-major-mode
	   (not (eq font-lock-major-mode major-mode)))))