diff options
| author | Romain Francoise | 2005-12-14 11:21:51 +0000 |
|---|---|---|
| committer | Romain Francoise | 2005-12-14 11:21:51 +0000 |
| commit | b158c851d4f79a442b150610af738ff510ce68c5 (patch) | |
| tree | b744f3d9d21a185e8002fbef605265436b924e6b | |
| parent | 28aa81489da5e780d3b811e17a5508af4e1d2728 (diff) | |
| download | emacs-b158c851d4f79a442b150610af738ff510ce68c5.tar.gz emacs-b158c851d4f79a442b150610af738ff510ce68c5.zip | |
(Customizing Keywords): Rename `append' to `how'.
Fix typo.
| -rw-r--r-- | lispref/ChangeLog | 5 | ||||
| -rw-r--r-- | lispref/modes.texi | 11 |
2 files changed, 10 insertions, 6 deletions
diff --git a/lispref/ChangeLog b/lispref/ChangeLog index 0e6d0127b4c..072a1f3d32b 100644 --- a/lispref/ChangeLog +++ b/lispref/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2005-12-14 Romain Francoise <romain@orebokech.com> | ||
| 2 | |||
| 3 | * modes.texi (Customizing Keywords): Rename `append' to `how'. | ||
| 4 | Fix typo. | ||
| 5 | |||
| 1 | 2005-12-11 Juri Linkov <juri@jurta.org> | 6 | 2005-12-11 Juri Linkov <juri@jurta.org> |
| 2 | 7 | ||
| 3 | * minibuf.texi (Completion Commands): Add mention of read-file-name | 8 | * minibuf.texi (Completion Commands): Add mention of read-file-name |
diff --git a/lispref/modes.texi b/lispref/modes.texi index f0513704b1f..6fd23114044 100644 --- a/lispref/modes.texi +++ b/lispref/modes.texi | |||
| @@ -2638,7 +2638,7 @@ Non-@code{nil} means that regular expression matching for the sake of | |||
| 2638 | search-based fontification rules to a major mode, and | 2638 | search-based fontification rules to a major mode, and |
| 2639 | @code{font-lock-remove-keywords} to removes rules. | 2639 | @code{font-lock-remove-keywords} to removes rules. |
| 2640 | 2640 | ||
| 2641 | @defun font-lock-add-keywords mode keywords &optional append | 2641 | @defun font-lock-add-keywords mode keywords &optional how |
| 2642 | This function adds highlighting @var{keywords}, for the current buffer | 2642 | This function adds highlighting @var{keywords}, for the current buffer |
| 2643 | or for major mode @var{mode}. The argument @var{keywords} should be a | 2643 | or for major mode @var{mode}. The argument @var{keywords} should be a |
| 2644 | list with the same format as the variable @code{font-lock-keywords}. | 2644 | 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 | |||
| 2654 | @code{font-lock-add-keywords} is usually used in mode hook functions. | 2654 | @code{font-lock-add-keywords} is usually used in mode hook functions. |
| 2655 | 2655 | ||
| 2656 | By default, @var{keywords} are added at the beginning of | 2656 | By default, @var{keywords} are added at the beginning of |
| 2657 | @code{font-lock-keywords}. If the optional argument @var{append} is | 2657 | @code{font-lock-keywords}. If the optional argument @var{how} is |
| 2658 | @code{set}, they are used to replace the value of | 2658 | @code{set}, they are used to replace the value of |
| 2659 | @code{font-lock-keywords}. If @var{append} is any other | 2659 | @code{font-lock-keywords}. If @var{how} is any other non-@code{nil} |
| 2660 | non-@code{nil} value, they are added at the end of | 2660 | value, they are added at the end of @code{font-lock-keywords}. |
| 2661 | @code{font-lock-keywords}. | ||
| 2662 | 2661 | ||
| 2663 | Some modes provide specialized support you can use in additional | 2662 | Some modes provide specialized support you can use in additional |
| 2664 | highlighting patterns. See the variables | 2663 | highlighting patterns. See the variables |
| @@ -2677,7 +2676,7 @@ rules for search-based fontification by setting | |||
| 2677 | This function removes @var{keywords} from @code{font-lock-keywords} | 2676 | This function removes @var{keywords} from @code{font-lock-keywords} |
| 2678 | for the current buffer or for major mode @var{mode}. As in | 2677 | for the current buffer or for major mode @var{mode}. As in |
| 2679 | @code{font-lock-add-keywords}, @var{mode} should be a major mode | 2678 | @code{font-lock-add-keywords}, @var{mode} should be a major mode |
| 2680 | command name or @code{nil}. All the caveats and requirments for | 2679 | command name or @code{nil}. All the caveats and requirements for |
| 2681 | @code{font-lock-add-keywords} apply here too. | 2680 | @code{font-lock-add-keywords} apply here too. |
| 2682 | @end defun | 2681 | @end defun |
| 2683 | 2682 | ||