[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master c5fd4d3: Rename font-log-refontify

From: Lars Ingebrigtsen
Subject: master c5fd4d3: Rename font-log-refontify
Date: Mon, 11 Nov 2019 21:41:53 -0500 (EST)

branch: master
commit c5fd4d373ed6d80b744951afe13e50070bff41cf
Author: Lars Ingebrigtsen <address@hidden>
Commit: Lars Ingebrigtsen <address@hidden>

    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.
 doc/lispref/modes.texi | 4 ++--
 lisp/font-lock.el      | 4 ++--
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/doc/lispref/modes.texi b/doc/lispref/modes.texi
index b7e5747..7283930 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
 accessible portion.  Calls the function specified by
-@item font-lock-refontify
+@item font-lock-debug-fontify
 This is a convenience command meant to be used when developing font
 locking for a mode, and should not be called from Lisp code.  It
 recomputes all the relevant variables and then calls
-@code{font-lock-ensure} on the entire buffer.
+@code{font-lock-fontify-region} on the entire buffer.
 @end ftable
   There are several variables that control how Font Lock mode highlights
diff --git a/lisp/font-lock.el b/lisp/font-lock.el
index f254211..01c19e6 100644
--- a/lisp/font-lock.el
+++ b/lisp/font-lock.el
@@ -1100,8 +1100,8 @@ accessible portion of the current buffer."
   "Function to make sure a region has been fontified.
 Called with two arguments BEG and END.")
-(defun font-lock-refontify ()
-  "Reinitialise the font-lock machinery and re-fontify the buffer.
+(defun font-lock-debug-fontify ()
+  "Reinitialise 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."

reply via email to

[Prev in Thread] Current Thread [Next in Thread]