Function: font-lock-defontify
font-lock-defontify is a byte-compiled function defined in
font-core.el.gz.
Signature
(font-lock-defontify)
Documentation
Clear out all font-lock-face properties in current buffer.
A major mode that uses font-lock-face properties might want to put
this function onto change-major-mode-hook.
Source Code
;; Defined in /usr/src/emacs/lisp/font-core.el.gz
(defun font-lock-defontify ()
"Clear out all `font-lock-face' properties in current buffer.
A major mode that uses `font-lock-face' properties might want to put
this function onto `change-major-mode-hook'."
(let ((modp (buffer-modified-p))
(inhibit-read-only t))
(save-restriction
(widen)
(remove-list-of-text-properties (point-min) (point-max)
'(font-lock-face)))
(restore-buffer-modified-p modp)))