aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--man/display.texi14
1 files changed, 9 insertions, 5 deletions
diff --git a/man/display.texi b/man/display.texi
index 81ea723ddb8..6cb2d857165 100644
--- a/man/display.texi
+++ b/man/display.texi
@@ -726,12 +726,16 @@ match), and finally use this command (@code{hi-lock-find-patterns}) to
726have Hi Lock highlight the edited patterns. 726have Hi Lock highlight the edited patterns.
727 727
728@vindex hi-lock-file-patterns-policy 728@vindex hi-lock-file-patterns-policy
729The variable @code{hi-lock-file-patterns-policy} controls whether 729The variable @code{hi-lock-file-patterns-policy} controls whether Hi
730@code{hi-lock-find-patterns} should really do anything. Its value can 730Lock mode should automatically extract and highlight patterns found in
731be @code{nil} (do nothing), @code{t} (extract the patterns), 731a file when it is visited. Its value can be @code{nil} (never
732@code{ask} (query the user), or a function. If it is a function, 732highlight), @code{t} (highlight the patterns), @code{ask} (query the
733user), or a function. If it is a function,
733@code{hi-lock-find-patterns} calls it with the patterns as argument; 734@code{hi-lock-find-patterns} calls it with the patterns as argument;
734if the function returns non-@code{nil}, the patterns are used. 735if the function returns non-@code{nil}, the patterns are used. The
736default is @code{nil}. Note that patterns are always highlighted if
737you call @code{hi-lock-find-patterns} directly, regardless of the
738value of this variable.
735 739
736@vindex hi-lock-exclude-modes 740@vindex hi-lock-exclude-modes
737Also, @code{hi-lock-find-patterns} does nothing if the current major 741Also, @code{hi-lock-find-patterns} does nothing if the current major