aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-11-12 03:40:06 +0100
committerLars Ingebrigtsen2019-11-12 03:40:29 +0100
commitc5fd4d373ed6d80b744951afe13e50070bff41cf (patch)
treeca4ceb625cc3980923ce0eb4dd63c0ca7c0bc29e
parent96828581d9efdcff4ac0c11d0f638d99d3a191bf (diff)
downloademacs-c5fd4d373ed6d80b744951afe13e50070bff41cf.tar.gz
emacs-c5fd4d373ed6d80b744951afe13e50070bff41cf.zip
Rename font-log-refontify
* lisp/font-lock.el (font-lock-debug-fontify): Rename to make it clearer what the function is for. * doc/lispref/modes.texi (Font Lock Basics): Ditto.
-rw-r--r--doc/lispref/modes.texi4
-rw-r--r--lisp/font-lock.el4
2 files changed, 4 insertions, 4 deletions
diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index b7e574740ab..7283930507f 100644
--- a/doc/lispref/modes.texi
+++ b/doc/lispref/modes.texi
@@ -2738,11 +2738,11 @@ This function should make sure the region between @var{beg} and
2738accessible portion. Calls the function specified by 2738accessible portion. Calls the function specified by
2739@code{font-lock-ensure-function}. 2739@code{font-lock-ensure-function}.
2740 2740
2741@item font-lock-refontify 2741@item font-lock-debug-fontify
2742This is a convenience command meant to be used when developing font 2742This is a convenience command meant to be used when developing font
2743locking for a mode, and should not be called from Lisp code. It 2743locking for a mode, and should not be called from Lisp code. It
2744recomputes all the relevant variables and then calls 2744recomputes all the relevant variables and then calls
2745@code{font-lock-ensure} on the entire buffer. 2745@code{font-lock-fontify-region} on the entire buffer.
2746@end ftable 2746@end ftable
2747 2747
2748 There are several variables that control how Font Lock mode highlights 2748 There are several variables that control how Font Lock mode highlights
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index f254211aa27..01c19e6e874 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1100,8 +1100,8 @@ accessible portion of the current buffer."
1100 "Function to make sure a region has been fontified. 1100 "Function to make sure a region has been fontified.
1101Called with two arguments BEG and END.") 1101Called with two arguments BEG and END.")
1102 1102
1103(defun font-lock-refontify () 1103(defun font-lock-debug-fontify ()
1104 "Reinitialise the font-lock machinery and re-fontify the buffer. 1104 "Reinitialise the font-lock machinery and (re-)fontify the buffer.
1105This functions is a convenience functions when developing font 1105This functions is a convenience functions when developing font
1106locking for a mode, and is not meant to be called from lisp functions." 1106locking for a mode, and is not meant to be called from lisp functions."
1107 (interactive) 1107 (interactive)