diff options
| author | Alan Mackenzie | 2010-01-28 16:24:50 +0000 |
|---|---|---|
| committer | Alan Mackenzie | 2010-01-28 16:24:50 +0000 |
| commit | c02f8fe2f1761e6d432fe5716959ce3b27feaff2 (patch) | |
| tree | c19ba1fa80a617eae26e39c8c18f8bba891cd038 /doc | |
| parent | a292592c130607e487082c58c52aac31bc9be366 (diff) | |
| download | emacs-c02f8fe2f1761e6d432fe5716959ce3b27feaff2.tar.gz emacs-c02f8fe2f1761e6d432fe5716959ce3b27feaff2.zip | |
display.texi (Auto Faces): Say fontification-functions is called
whether or not Font Lock is enabled. Tidy up the wording a bit.
Diffstat (limited to 'doc')
| -rw-r--r-- | doc/lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | doc/lispref/display.texi | 20 |
2 files changed, 16 insertions, 9 deletions
diff --git a/doc/lispref/ChangeLog b/doc/lispref/ChangeLog index 2f5923fb8f1..58c801f5cae 100644 --- a/doc/lispref/ChangeLog +++ b/doc/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2010-01-28 Alan Mackenzie <acm@muc.de> | ||
| 2 | |||
| 3 | * display.texi (Auto Faces): Say fontification-functions is called | ||
| 4 | whether or not Font Lock is enabled. Tidy up the wording a bit. | ||
| 5 | |||
| 1 | 2010-01-17 Chong Yidong <cyd@stupidchicken.com> | 6 | 2010-01-17 Chong Yidong <cyd@stupidchicken.com> |
| 2 | 7 | ||
| 3 | * elisp.texi: Remove duplicate edition information (Bug#5407). | 8 | * elisp.texi: Remove duplicate edition information (Bug#5407). |
diff --git a/doc/lispref/display.texi b/doc/lispref/display.texi index 9c1db3d276f..5f2e4f874a8 100644 --- a/doc/lispref/display.texi +++ b/doc/lispref/display.texi | |||
| @@ -2654,23 +2654,25 @@ Font-Lock. | |||
| 2654 | 2654 | ||
| 2655 | @defvar fontification-functions | 2655 | @defvar fontification-functions |
| 2656 | This variable holds a list of functions that are called by Emacs | 2656 | This variable holds a list of functions that are called by Emacs |
| 2657 | redisplay as needed to assign faces automatically to text in the buffer. | 2657 | redisplay as needed, just before doing redisplay. They are called even |
| 2658 | when Font Lock Mode isn't enabled. When Font Lock Mode is enabled, this | ||
| 2659 | variable usually holds just one function, @code{jit-lock-function}. | ||
| 2658 | 2660 | ||
| 2659 | The functions are called in the order listed, with one argument, a | 2661 | The functions are called in the order listed, with one argument, a |
| 2660 | buffer position @var{pos}. Each function should attempt to assign faces | 2662 | buffer position @var{pos}. Collectively they should attempt to assign |
| 2661 | to the text in the current buffer starting at @var{pos}. | 2663 | faces to the text in the current buffer starting at @var{pos}. |
| 2662 | 2664 | ||
| 2663 | Each function should record the faces they assign by setting the | 2665 | The functions should record the faces they assign by setting the |
| 2664 | @code{face} property. It should also add a non-@code{nil} | 2666 | @code{face} property. They should also add a non-@code{nil} |
| 2665 | @code{fontified} property for all the text it has assigned faces to. | 2667 | @code{fontified} property to all the text they have assigned faces to. |
| 2666 | That property tells redisplay that faces have been assigned to that text | 2668 | That property tells redisplay that faces have been assigned to that text |
| 2667 | already. | 2669 | already. |
| 2668 | 2670 | ||
| 2669 | It is probably a good idea for each function to do nothing if the | 2671 | It is probably a good idea for the functions to do nothing if the |
| 2670 | character after @var{pos} already has a non-@code{nil} @code{fontified} | 2672 | character after @var{pos} already has a non-@code{nil} @code{fontified} |
| 2671 | property, but this is not required. If one function overrides the | 2673 | property, but this is not required. If one function overrides the |
| 2672 | assignments made by a previous one, the properties as they are | 2674 | assignments made by a previous one, the properties after the last |
| 2673 | after the last function finishes are the ones that really matter. | 2675 | function finishes are the ones that really matter. |
| 2674 | 2676 | ||
| 2675 | For efficiency, we recommend writing these functions so that they | 2677 | For efficiency, we recommend writing these functions so that they |
| 2676 | usually assign faces to around 400 to 600 characters at each call. | 2678 | usually assign faces to around 400 to 600 characters at each call. |