Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
emacs
emacs
Commits
caef3ed2
Commit
caef3ed2
authored
Dec 13, 2008
by
Glenn Morris
Browse files
(Font Lock Basics): Fix level description. (Bug#1534)
(Levels of Font Lock): Refer to font-lock-maximum-decoration.
parent
55e41770
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
5 deletions
+14
-5
doc/lispref/ChangeLog
doc/lispref/ChangeLog
+5
-0
doc/lispref/modes.texi
doc/lispref/modes.texi
+9
-5
No files found.
doc/lispref/ChangeLog
View file @
caef3ed2
2008-12-13 Glenn Morris <rgm@gnu.org>
* modes.texi (Font Lock Basics): Fix level description. (Bug#1534)
(Levels of Font Lock): Refer to font-lock-maximum-decoration.
2008-12-12 Glenn Morris <rgm@gnu.org>
* debugging.texi (Error Debugging): Refer forwards to
...
...
doc/lispref/modes.texi
View file @
caef3ed2
...
...
@@ -2429,8 +2429,11 @@ The first element, @var{keywords}, indirectly specifies the value of
It can be a symbol, a variable or a function whose value is the list
to use for @code{font-lock-keywords}. It can also be a list of
several such symbols, one for each possible level of fontification.
The first symbol specifies how to do level 1 fontification, the second
symbol how to do level 2, and so on. @xref{Levels of Font Lock}.
The first symbol specifies the @samp{mode default} level of
fontification, the next symbol level 1 fontification, the next level 2,
and so on. The @samp{mode default} level is normally the same as level
1. It is used when @code{font-lock-maximum-decoration} has a @code{nil}
value. @xref{Levels of Font Lock}.
The second element, @var{keywords-only}, specifies the value of the
variable @code{font-lock-keywords-only}. If this is omitted or
...
...
@@ -2854,9 +2857,10 @@ function using @code{jit-lock-register}, this function unregisters it.
Many major modes offer three different levels of fontification. You
can define multiple levels by using a list of symbols for @var{keywords}
in @code{font-lock-defaults}. Each symbol specifies one level of
fontification; it is up to the user to choose one of these levels. The
chosen level's symbol value is used to initialize
@code{font-lock-keywords}.
fontification; it is up to the user to choose one of these levels,
normally by setting @code{font-lock-maximum-decoration} (@pxref{Font
Lock,,, emacs, the GNU Emacs Manual}). The chosen level's symbol
value is used to initialize @code{font-lock-keywords}.
Here are the conventions for how to define the levels of
fontification:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment