diff options
| -rw-r--r-- | man/display.texi | 14 |
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 | |||
| 726 | have Hi Lock highlight the edited patterns. | 726 | have Hi Lock highlight the edited patterns. |
| 727 | 727 | ||
| 728 | @vindex hi-lock-file-patterns-policy | 728 | @vindex hi-lock-file-patterns-policy |
| 729 | The variable @code{hi-lock-file-patterns-policy} controls whether | 729 | The variable @code{hi-lock-file-patterns-policy} controls whether Hi |
| 730 | @code{hi-lock-find-patterns} should really do anything. Its value can | 730 | Lock mode should automatically extract and highlight patterns found in |
| 731 | be @code{nil} (do nothing), @code{t} (extract the patterns), | 731 | a 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, | 732 | highlight), @code{t} (highlight the patterns), @code{ask} (query the |
| 733 | user), 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; |
| 734 | if the function returns non-@code{nil}, the patterns are used. | 735 | if the function returns non-@code{nil}, the patterns are used. The |
| 736 | default is @code{nil}. Note that patterns are always highlighted if | ||
| 737 | you call @code{hi-lock-find-patterns} directly, regardless of the | ||
| 738 | value of this variable. | ||
| 735 | 739 | ||
| 736 | @vindex hi-lock-exclude-modes | 740 | @vindex hi-lock-exclude-modes |
| 737 | Also, @code{hi-lock-find-patterns} does nothing if the current major | 741 | Also, @code{hi-lock-find-patterns} does nothing if the current major |