diff options
| author | Eli Zaretskii | 2016-06-18 12:50:57 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2016-06-18 12:50:57 +0300 |
| commit | 65c96cc02598ded824a19e0c70d49d84d7fce9c7 (patch) | |
| tree | 64f1eb283467113a9c8a17b6a33397fca198b69b /doc | |
| parent | 2ad3d0182df68f00cca57584807f721c3c5c96f1 (diff) | |
| download | emacs-65c96cc02598ded824a19e0c70d49d84d7fce9c7.tar.gz emacs-65c96cc02598ded824a19e0c70d49d84d7fce9c7.zip | |
Clarify documentation of 'font-lock-maximum-decoration'
* doc/emacs/display.texi (Font Lock): Explain how to make the
customization of 'font-lock-maximum-decoration' effective for an
existing buffer. (Bug#23783)
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/emacs/display.texi | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/doc/emacs/display.texi b/doc/emacs/display.texi index 8039291298c..56b643becf2 100644 --- a/doc/emacs/display.texi +++ b/doc/emacs/display.texi | |||
| @@ -847,9 +847,15 @@ to alter the amount of fontification applied by Font Lock mode, for | |||
| 847 | major modes that support this feature. The value should be a number | 847 | major modes that support this feature. The value should be a number |
| 848 | (with 1 representing a minimal amount of fontification; some modes | 848 | (with 1 representing a minimal amount of fontification; some modes |
| 849 | support levels as high as 3); or @code{t}, meaning ``as high as | 849 | support levels as high as 3); or @code{t}, meaning ``as high as |
| 850 | possible'' (the default). You can also specify different numbers for | 850 | possible'' (the default). To be effective for a given file buffer, |
| 851 | particular major modes; for example, to use level 1 for C/C++ modes, | 851 | the customization of @code{font-lock-maximum-decoration} should be |
| 852 | and the default level otherwise, use the value | 852 | done @emph{before} the file is visited; if you already have the file |
| 853 | visited in a buffer when you customize this variable, kill the buffer | ||
| 854 | and visit the file again after the customization. | ||
| 855 | |||
| 856 | You can also specify different numbers for particular major modes; for | ||
| 857 | example, to use level 1 for C/C++ modes, and the default level | ||
| 858 | otherwise, use the value | ||
| 853 | 859 | ||
| 854 | @example | 860 | @example |
| 855 | '((c-mode . 1) (c++-mode . 1))) | 861 | '((c-mode . 1) (c++-mode . 1))) |