diff options
| author | Eli Zaretskii | 2001-03-11 17:52:35 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2001-03-11 17:52:35 +0000 |
| commit | 6bb2ed9b5a339ab48eddbeb8714b7771ec220b6b (patch) | |
| tree | 9a67eed15b3c3eaf0467ccf5b15086be1a249ac6 | |
| parent | 40beeceea1293756dce90de086ae08717b118c2c (diff) | |
| download | emacs-6bb2ed9b5a339ab48eddbeb8714b7771ec220b6b.tar.gz emacs-6bb2ed9b5a339ab48eddbeb8714b7771ec220b6b.zip | |
(Faces): Fix description of terminals which support faces.
(Font Lock): Document that syntactic fontification might slow down display.
| -rw-r--r-- | man/display.texi | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/man/display.texi b/man/display.texi index e7b0519bd5d..144d2159104 100644 --- a/man/display.texi +++ b/man/display.texi | |||
| @@ -36,12 +36,13 @@ you can control are the type font, the foreground color, the | |||
| 36 | background color, and whether or not to underline text, and in which | 36 | background color, and whether or not to underline text, and in which |
| 37 | color. | 37 | color. |
| 38 | 38 | ||
| 39 | Features which rely on text in multiple faces (such as Font Lock | 39 | Features which rely on text in multiple faces (such as Font Lock mode) |
| 40 | mode) will also work on non-windowed terminals (including | 40 | will also work on non-windowed terminals that can display more than one |
| 41 | MS-DOS@pxref{MS-DOS}), that can display more than one face, whether by | 41 | face, whether by colors or underlining and emboldening. This includes |
| 42 | colors or underlining and emboldening. This includes the console on | 42 | the console on GNU/Linux, an @code{xterm} which supports colors, the |
| 43 | GNU/Linux. Emacs determines automatically whether the terminal has | 43 | MS-DOS display (@pxref{MS-DOS}), and the MS-Windows version invoked with |
| 44 | this capability. | 44 | the @option{-nw} option. Emacs determines automatically whether the |
| 45 | terminal has this capability. | ||
| 45 | 46 | ||
| 46 | The way you control display style is by defining named @dfn{faces}. | 47 | The way you control display style is by defining named @dfn{faces}. |
| 47 | Each face can specify various attributes, like the type font's height, | 48 | Each face can specify various attributes, like the type font's height, |
| @@ -256,6 +257,7 @@ or comment. (@xref{Defuns}.) If you don't follow this convention, | |||
| 256 | then Font Lock mode can misfontify the text after an open-parenthesis in | 257 | then Font Lock mode can misfontify the text after an open-parenthesis in |
| 257 | the leftmost column that is inside a string or comment. | 258 | the leftmost column that is inside a string or comment. |
| 258 | 259 | ||
| 260 | @cindex slow display during scrolling | ||
| 259 | The variable @code{font-lock-beginning-of-syntax-function} (always | 261 | The variable @code{font-lock-beginning-of-syntax-function} (always |
| 260 | buffer-local) specifies how Font Lock mode can find a position | 262 | buffer-local) specifies how Font Lock mode can find a position |
| 261 | guaranteed to be outside any comment or string. In modes which use the | 263 | guaranteed to be outside any comment or string. In modes which use the |
| @@ -264,7 +266,9 @@ is @code{beginning-of-defun}---that tells Font Lock mode to use the | |||
| 264 | convention. If you set this variable to @code{nil}, Font Lock no longer | 266 | convention. If you set this variable to @code{nil}, Font Lock no longer |
| 265 | relies on the convention. This avoids incorrect results, but the price | 267 | relies on the convention. This avoids incorrect results, but the price |
| 266 | is that, in some cases, fontification for a changed text must rescan | 268 | is that, in some cases, fontification for a changed text must rescan |
| 267 | buffer text from the beginning of the buffer. | 269 | buffer text from the beginning of the buffer. This can considerably |
| 270 | slow down redisplay while scrolling, particularly if you are close to | ||
| 271 | the end of a large buffer. | ||
| 268 | 272 | ||
| 269 | @findex font-lock-add-keywords | 273 | @findex font-lock-add-keywords |
| 270 | Font Lock highlighting patterns already exist for many modes, but you | 274 | Font Lock highlighting patterns already exist for many modes, but you |