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

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

[nongnu] elpa/racket-mode 24d59b1546: Clamp font-lock-flush positions; f


From: ELPA Syncer
Subject: [nongnu] elpa/racket-mode 24d59b1546: Clamp font-lock-flush positions; fixes #674
Date: Fri, 10 Nov 2023 13:00:36 -0500 (EST)

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

    Clamp font-lock-flush positions; fixes #674
---
 racket-hash-lang.el | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/racket-hash-lang.el b/racket-hash-lang.el
index 00cf7de7fd..837f621d7c 100644
--- a/racket-hash-lang.el
+++ b/racket-hash-lang.el
@@ -403,7 +403,10 @@ lang's attributes that we care about have changed."
 All we do here is mark the span as not fontified, then let
 jit-lock do its thing if/when this span ever becomes visible."
   ;;;(message "racket--hash-lang-on-changed-tokens %s %s %s" _gen beg end)
-  (font-lock-flush beg end))
+  (save-restriction
+    (widen)
+    (font-lock-flush (max beg (point-min))
+                     (min end (point-max)))))
 
 ;;; Fontification
 



reply via email to

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