Mercurial > emacs
comparison lisp/font-lock.el @ 93904:41ee2cc9680d
(font-lock-extend-after-change-region-function): Make it buffer local.
author | Alan Mackenzie <acm@muc.de> |
---|---|
date | Wed, 09 Apr 2008 08:17:59 +0000 |
parents | f0b6eb7a4cc3 |
children | f4ec8461e0fc |
comparison
equal
deleted
inserted
replaced
93903:475f29769814 | 93904:41ee2cc9680d |
---|---|
1005 from `after-change-functions'. It should return either a cons of the beginning | 1005 from `after-change-functions'. It should return either a cons of the beginning |
1006 and end buffer positions \(in that order) of the region to refontify, or nil | 1006 and end buffer positions \(in that order) of the region to refontify, or nil |
1007 \(which directs the caller to fontify a default region). | 1007 \(which directs the caller to fontify a default region). |
1008 This function should preserve the match-data. | 1008 This function should preserve the match-data. |
1009 The region it returns may start or end in the middle of a line.") | 1009 The region it returns may start or end in the middle of a line.") |
1010 (make-variable-buffer-local 'font-lock-extend-after-change-region-function) | |
1010 | 1011 |
1011 (defun font-lock-fontify-buffer () | 1012 (defun font-lock-fontify-buffer () |
1012 "Fontify the current buffer the way the function `font-lock-mode' would." | 1013 "Fontify the current buffer the way the function `font-lock-mode' would." |
1013 (interactive) | 1014 (interactive) |
1014 (font-lock-set-defaults) | 1015 (font-lock-set-defaults) |