emacs-elpa-diffs
[Top][All Lists]
Advanced

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

[nongnu] elpa/racket-mode b5fff90905 2/3: Use jit-lock-refontify instead


From: ELPA Syncer
Subject: [nongnu] elpa/racket-mode b5fff90905 2/3: Use jit-lock-refontify instead of font-lock-flush
Date: Tue, 28 Nov 2023 13:00:48 -0500 (EST)

branch: elpa/racket-mode
commit b5fff90905cafc33ae02a1a9ecd039cc07aac0f0
Author: Greg Hendershott <git@greghendershott.com>
Commit: Greg Hendershott <git@greghendershott.com>

    Use jit-lock-refontify instead of font-lock-flush
    
    The former simply sets the 'fontified prop to nil for the region,
    which is what I misunderstood font-lock-flush to be doing.
---
 racket-hash-lang.el | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/racket-hash-lang.el b/racket-hash-lang.el
index 75cf59bccc..1e28ab4f66 100644
--- a/racket-hash-lang.el
+++ b/racket-hash-lang.el
@@ -454,8 +454,8 @@ jit-lock do its thing as/when this span ever becomes 
visible."
   ;;;(message "racket--hash-lang-on-changed-tokens %s %s %s" _gen beg end)
   (save-restriction
     (widen)
-    (font-lock-flush (max beg (point-min))
-                     (min end (point-max)))))
+    (jit-lock-refontify (max beg (point-min))
+                        (min end (point-max)))))
 
 ;;; Fontification
 



reply via email to

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