From: Eli Zaretskii Date: Fri, 4 Nov 2016 09:16:40 +0000 (+0200) Subject: Improve documentation of 'font-lock-remove-keywords' X-Git-Tag: emacs-25.1.90~68 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=bdc89eb4a6fa977f050551b43a299999aa3dda57;p=emacs.git Improve documentation of 'font-lock-remove-keywords' * doc/lispref/modes.texi (Customizing Keywords): Clarify the 'keywords' argument of 'font-lock-remove-keywords'. Suggested by Hong Xu . (Bug#24830) --- diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi index 32baa27147b..7bbb5e6f583 100644 --- a/doc/lispref/modes.texi +++ b/doc/lispref/modes.texi @@ -2916,7 +2916,9 @@ 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 requirements for -@code{font-lock-add-keywords} apply here too. +@code{font-lock-add-keywords} apply here too. The argument +@var{keywords} must exactly match the one used by the corresponding +@code{font-lock-add-keywords}. @end defun For example, the following code adds two fontification patterns for C