aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorEli Zaretskii2001-03-11 17:52:35 +0000
committerEli Zaretskii2001-03-11 17:52:35 +0000
commit6bb2ed9b5a339ab48eddbeb8714b7771ec220b6b (patch)
tree9a67eed15b3c3eaf0467ccf5b15086be1a249ac6
parent40beeceea1293756dce90de086ae08717b118c2c (diff)
downloademacs-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.texi18
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
36background color, and whether or not to underline text, and in which 36background color, and whether or not to underline text, and in which
37color. 37color.
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)
40mode) will also work on non-windowed terminals (including 40will also work on non-windowed terminals that can display more than one
41MS-DOS@pxref{MS-DOS}), that can display more than one face, whether by 41face, whether by colors or underlining and emboldening. This includes
42colors or underlining and emboldening. This includes the console on 42the console on GNU/Linux, an @code{xterm} which supports colors, the
43GNU/Linux. Emacs determines automatically whether the terminal has 43MS-DOS display (@pxref{MS-DOS}), and the MS-Windows version invoked with
44this capability. 44the @option{-nw} option. Emacs determines automatically whether the
45terminal 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}.
47Each face can specify various attributes, like the type font's height, 48Each 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,
256then Font Lock mode can misfontify the text after an open-parenthesis in 257then Font Lock mode can misfontify the text after an open-parenthesis in
257the leftmost column that is inside a string or comment. 258the 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
260buffer-local) specifies how Font Lock mode can find a position 262buffer-local) specifies how Font Lock mode can find a position
261guaranteed to be outside any comment or string. In modes which use the 263guaranteed 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
264convention. If you set this variable to @code{nil}, Font Lock no longer 266convention. If you set this variable to @code{nil}, Font Lock no longer
265relies on the convention. This avoids incorrect results, but the price 267relies on the convention. This avoids incorrect results, but the price
266is that, in some cases, fontification for a changed text must rescan 268is that, in some cases, fontification for a changed text must rescan
267buffer text from the beginning of the buffer. 269buffer text from the beginning of the buffer. This can considerably
270slow down redisplay while scrolling, particularly if you are close to
271the 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