Skip to content

Commit c5fd4d3

Browse files
committed
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.
1 parent 9682858 commit c5fd4d3

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

doc/lispref/modes.texi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2738,11 +2738,11 @@ This function should make sure the region between @var{beg} and
27382738
accessible portion. Calls the function specified by
27392739
@code{font-lock-ensure-function}.
27402740

2741-
@item font-lock-refontify
2741+
@item font-lock-debug-fontify
27422742
This is a convenience command meant to be used when developing font
27432743
locking for a mode, and should not be called from Lisp code. It
27442744
recomputes 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.
27462746
@end ftable
27472747

27482748
There are several variables that control how Font Lock mode highlights

lisp/font-lock.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,8 +1100,8 @@ accessible portion of the current buffer."
11001100
"Function to make sure a region has been fontified.
11011101
Called with two arguments BEG and END.")
11021102

1103-
(defun font-lock-refontify ()
1104-
"Reinitialise the font-lock machinery and re-fontify the buffer.
1103+
(defun font-lock-debug-fontify ()
1104+
"Reinitialise the font-lock machinery and (re-)fontify the buffer.
11051105
This functions is a convenience functions when developing font
11061106
locking for a mode, and is not meant to be called from lisp functions."
11071107
(interactive)

0 commit comments

Comments
 (0)