diff options
author | Glenn Morris <[email protected]> | 2007-04-22 01:49:46 +0000 |
---|---|---|
committer | Glenn Morris <[email protected]> | 2007-04-22 01:49:46 +0000 |
commit | 176eb1f17f51d9d2cb8f751895b0bf8391cb5857 (patch) | |
tree | 88d430af19d456908f7cfa38e624c5dcd5ef2dd7 /lisp/hi-lock.el | |
parent | bd95c2c0f6917c701c03b056d1242d6bc3c95864 (diff) |
(hi-lock-file-patterns-policy): Make it a defcustom, and give it the
risky-local-variable property.
Diffstat (limited to 'lisp/hi-lock.el')
-rw-r--r-- | lisp/hi-lock.el | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/lisp/hi-lock.el b/lisp/hi-lock.el index 0dd5f6ef2e..78654a171b 100644 --- a/lisp/hi-lock.el +++ b/lisp/hi-lock.el @@ -124,12 +124,20 @@ calls." :type '(repeat symbol) :group 'hi-lock) -(defvar hi-lock-file-patterns-policy 'never +(defcustom hi-lock-file-patterns-policy 'never "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 nil or 'never or anything else, don't use file -patterns.") +patterns." + :type '(choice (const :tag "Do not use file patterns" never) + (const :tag "Ask about file patterns" ask) + (function :tag "Function to check file patterns")) + :group 'hi-lock + :version "22.1") + +;; It can have a function value. +(put 'hi-lock-file-patterns-policy 'risky-local-variable t) (defgroup hi-lock-faces nil "Faces for hi-lock." |