diff options
| author | Lars Ingebrigtsen | 2016-04-30 15:55:44 +0200 |
|---|---|---|
| committer | Lars Ingebrigtsen | 2016-05-01 19:27:11 +0200 |
| commit | 05194cbeaf80ce53e3eb00b91fe67ff143a51cfc (patch) | |
| tree | bc0fe3798c87d0dcd1222fce72d1e578a90dfa25 | |
| parent | 7a03d55230ff9814bb9c0e19913f3a537dc1ebec (diff) | |
| download | emacs-05194cbeaf80ce53e3eb00b91fe67ff143a51cfc.tar.gz emacs-05194cbeaf80ce53e3eb00b91fe67ff143a51cfc.zip | |
Doc fix for font-lock-remove-keywords
* lisp/font-lock.el (font-lock-remove-keywords): Add a link to
`font-lock-add-keywords' to describe KEYWORDS (bug#18634).
(cherry picked from commit bc00dcf12983cd399127d0eea39647f29778eb02)
| -rw-r--r-- | lisp/font-lock.el | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index 6f94f353c90..634073c2867 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el | |||
| @@ -785,8 +785,11 @@ see the variables `c-font-lock-extra-types', `c++-font-lock-extra-types', | |||
| 785 | (defun font-lock-remove-keywords (mode keywords) | 785 | (defun font-lock-remove-keywords (mode keywords) |
| 786 | "Remove highlighting KEYWORDS for MODE. | 786 | "Remove highlighting KEYWORDS for MODE. |
| 787 | 787 | ||
| 788 | MODE should be a symbol, the major mode command name, such as `c-mode' | 788 | MODE should be a symbol, the major mode command name, such as |
| 789 | or nil. If nil, highlighting keywords are removed for the current buffer. | 789 | `c-mode' or nil. If nil, highlighting keywords are removed for |
| 790 | the current buffer. | ||
| 791 | |||
| 792 | For a description of KEYWORDS, see `font-lock-add-keywords'. | ||
| 790 | 793 | ||
| 791 | To make the removal apply to modes derived from MODE as well, | 794 | To make the removal apply to modes derived from MODE as well, |
| 792 | pass nil for MODE and add the call to MODE-hook. This may fail | 795 | pass nil for MODE and add the call to MODE-hook. This may fail |