Function: hi-lock-set-file-patterns

hi-lock-set-file-patterns is a byte-compiled function defined in hi-lock.el.gz.

Signature

(hi-lock-set-file-patterns PATTERNS)

Documentation

Replace file patterns list with PATTERNS and refontify.

Source Code

;; Defined in /usr/src/emacs/lisp/hi-lock.el.gz
(defun hi-lock-set-file-patterns (patterns)
  "Replace file patterns list with PATTERNS and refontify."
  (when (or hi-lock-file-patterns patterns)
    (font-lock-remove-keywords nil hi-lock-file-patterns)
    (setq hi-lock-file-patterns patterns)
    (font-lock-add-keywords nil hi-lock-file-patterns t)
    (font-lock-flush)))