From: Stefan Monnier Date: Thu, 5 Oct 2000 02:17:22 +0000 (+0000) Subject: (jit-lock-register, jit-lock-unregister): Docstring fix. X-Git-Tag: emacs-pretest-21.0.90~1149 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=8a677d4fdd85e4275d8aac26254c8fdd090d2ff4;p=emacs.git (jit-lock-register, jit-lock-unregister): Docstring fix. --- diff --git a/lisp/jit-lock.el b/lisp/jit-lock.el index e9b4b2ed309..cf1261e3652 100644 --- a/lisp/jit-lock.el +++ b/lisp/jit-lock.el @@ -253,13 +253,14 @@ the variable `jit-lock-stealth-nice'." (remove-hook 'fontification-functions 'jit-lock-function)))) (defun jit-lock-register (fun) - "Register FUN as a fontification function to be called by jit-lock. -Only applies to the current buffer." + "Register FUN as a fontification function to be called in this buffer. +FUN will be called with two arguments START and END indicating the region +that need to be (re)fontified." (add-hook 'jit-lock-functions fun nil t) (jit-lock-mode t)) (defun jit-lock-unregister (fun) - "Unregister FUN as a fontification function to be called by jit-lock. + "Unregister FUN as a fontification function. Only applies to the current buffer." (remove-hook 'jit-lock-functions fun t) (when (or (null jit-lock-functions)