diff options
Diffstat (limited to 'lisp/font-lock.el')
-rw-r--r-- | lisp/font-lock.el | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lisp/font-lock.el b/lisp/font-lock.el index c00a62a1607..a4ab897f6f2 100644 --- a/lisp/font-lock.el +++ b/lisp/font-lock.el @@ -697,7 +697,7 @@ comments, and to fontify `and', `or' and `not' words as keywords. The above procedure will only add the keywords for C mode, not for modes derived from C mode. To add them for derived modes too, -pass nil for MODE and add the call to c-mode-hook. +pass nil for MODE and add the call to `c-mode-hook'. For example: @@ -1039,7 +1039,7 @@ The function is given three parameters, the standard BEG, END, and OLD-LEN from `after-change-functions'. It should return either a cons of the beginning and end buffer positions \(in that order) of the region to refontify, or nil \(which directs the caller to fontify a default region). -This function should preserve the match-data. +This function should preserve the match data. The region it returns may start or end in the middle of a line.") (defun font-lock-fontify-buffer (&optional interactively) @@ -1103,7 +1103,7 @@ Called with two arguments BEG and END.") (defun font-lock-debug-fontify () "Reinitialize the font-lock machinery and (re-)fontify the buffer. This functions is a convenience functions when developing font -locking for a mode, and is not meant to be called from lisp functions." +locking for a mode, and is not meant to be called from Lisp functions." (declare (interactive-only t)) (interactive) ;; Make font-lock recalculate all the mode-specific data. @@ -1124,7 +1124,7 @@ portion of the buffer." (or beg (point-min)) (or end (point-max))))) (defun font-lock-update (&optional arg) - "Updates the syntax highlighting in this buffer. + "Update the syntax highlighting in this buffer. Refontify the accessible portion of this buffer, or enable Font Lock mode in this buffer if it is currently disabled. With prefix ARG, toggle Font Lock mode." @@ -2341,7 +2341,7 @@ This should be an integer. Used in `cpp-font-lock-keywords'.") "Font lock keywords for C preprocessor directives. `c-mode', `c++-mode' and `objc-mode' have their own font lock keywords for C preprocessor directives. This definition is for the other modes -in which C preprocessor directives are used. e.g. `asm-mode' and +in which C preprocessor directives are used, e.g. `asm-mode' and `ld-script-mode'.") (provide 'font-lock) |