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
b158c851
Commit
b158c851
authored
Dec 14, 2005
by
Romain Francoise
Browse files
(Customizing Keywords): Rename `append' to `how'.
Fix typo.
parent
28aa8148
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
6 deletions
+10
-6
lispref/ChangeLog
lispref/ChangeLog
+5
-0
lispref/modes.texi
lispref/modes.texi
+5
-6
No files found.
lispref/ChangeLog
View file @
b158c851
2005
-
12
-
14
Romain
Francoise
<
romain
@
orebokech
.
com
>
*
modes
.
texi
(
Customizing
Keywords
):
Rename
`
append
' to `how'
.
Fix
typo
.
2005
-
12
-
11
Juri
Linkov
<
juri
@
jurta
.
org
>
*
minibuf
.
texi
(
Completion
Commands
):
Add
mention
of
read
-
file
-
name
...
...
lispref/modes.texi
View file @
b158c851
...
...
@@ -2638,7 +2638,7 @@ Non-@code{nil} means that regular expression matching for the sake of
search-based fontification rules to a major mode, and
@code{font-lock-remove-keywords} to removes rules.
@defun font-lock-add-keywords mode keywords &optional
append
@defun font-lock-add-keywords mode keywords &optional
how
This function adds highlighting @var{keywords}, for the current buffer
or for major mode @var{mode}. The argument @var{keywords} should be a
list with the same format as the variable @code{font-lock-keywords}.
...
...
@@ -2654,11 +2654,10 @@ If @var{mode} is @code{nil}, this function adds @var{keywords} to
@code{font-lock-add-keywords} is usually used in mode hook functions.
By default, @var{keywords} are added at the beginning of
@code{font-lock-keywords}. If the optional argument @var{
append
} is
@code{font-lock-keywords}. If the optional argument @var{
how
} is
@code{set}, they are used to replace the value of
@code{font-lock-keywords}. If @var{append} is any other
non-@code{nil} value, they are added at the end of
@code{font-lock-keywords}.
@code{font-lock-keywords}. If @var{how} is any other non-@code{nil}
value, they are added at the end of @code{font-lock-keywords}.
Some modes provide specialized support you can use in additional
highlighting patterns. See the variables
...
...
@@ -2677,7 +2676,7 @@ rules for search-based fontification by setting
This function removes @var{keywords} from @code{font-lock-keywords}
for the current buffer or for major mode @var{mode}. As in
@code{font-lock-add-keywords}, @var{mode} should be a major mode
command name or @code{nil}. All the caveats and requirments for
command name or @code{nil}. All the caveats and requir
e
ments for
@code{font-lock-add-keywords} apply here too.
@end defun
...
...
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