Variable: hi-lock-file-patterns-policy

hi-lock-file-patterns-policy is a customizable variable defined in hi-lock.el.gz.

Value

ask

Documentation

Specify when hi-lock should use patterns found in file.

If ask, prompt when patterns found in buffer; if bound to a function, use patterns when function returns t (function is called with patterns as first argument); if always, use file patterns without prompt; if nil or never or anything else, don't use file patterns.

This variable was added, or its default value changed, in Emacs 22.1.

View in manual

Source Code

;; Defined in /usr/src/emacs/lisp/hi-lock.el.gz
(defcustom hi-lock-file-patterns-policy 'ask
  "Specify when hi-lock should use patterns found in file.
If `ask', prompt when patterns found in buffer; if bound to a function,
use patterns when function returns t (function is called with patterns
as first argument); if `always', use file patterns without prompt;
if nil or `never' or anything else, don't use file patterns."
  :type '(choice (const :tag "Do not use file patterns" never)
                 (const :tag "Always use file patterns" always)
                 (const :tag "Ask about file patterns" ask)
                 (function :tag "Function to check file patterns"))
  :group 'hi-lock
  ;; It can have a function value.
  :risky t
  :version "22.1")