emacs-diffs
[Top][All Lists]
Advanced

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

feature/tree-sitter 9fab83ed7a: ; * lisp/treesit.el (tresit--font-lock-v


From: Yuan Fu
Subject: feature/tree-sitter 9fab83ed7a: ; * lisp/treesit.el (tresit--font-lock-verbose): Fix typo.
Date: Mon, 31 Oct 2022 17:26:34 -0400 (EDT)

branch: feature/tree-sitter
commit 9fab83ed7a90209e3873039e7ae4993c667e2759
Author: Yuan Fu <casouri@gmail.com>
Commit: Yuan Fu <casouri@gmail.com>

    ; * lisp/treesit.el (tresit--font-lock-verbose): Fix typo.
---
 lisp/treesit.el | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/lisp/treesit.el b/lisp/treesit.el
index b1c712fea5..2bd71cdf5d 100644
--- a/lisp/treesit.el
+++ b/lisp/treesit.el
@@ -576,7 +576,7 @@ ignored.
 ;; `jit-lock-functions' doesn't pass that argument.  So even if we set
 ;; `font-lock-verbose' to t, if jit-lock is enabled (and it's almost
 ;; always is), we don't get debug messages.  So we add our own.
-(defvar tresit--font-lock-verbose nil
+(defvar treesit--font-lock-verbose nil
   "If non-nil, print debug messages when fontifying.")
 
 (defun treesit-font-lock-recompute-features ()
@@ -604,7 +604,7 @@ Set the ENABLE flag for each setting in
     (start end &optional loudly)
   "Fontify the region between START and END.
 If LOUDLY is non-nil, display some debugging information."
-  (when (or loudly tresit--font-lock-verbose)
+  (when (or loudly treesit--font-lock-verbose)
     (message "Fontifying region: %s-%s" start end))
   (treesit-update-ranges start end)
   (font-lock-unfontify-region start end)
@@ -653,7 +653,7 @@ If LOUDLY is non-nil, display some debugging information."
                 ;; Don't raise an error if FACE is neither a face nor
                 ;; a function.  This is to allow intermediate capture
                 ;; names used for #match and #eq.
-                (when (or loudly tresit--font-lock-verbose)
+                (when (or loudly treesit--font-lock-verbose)
                   (message "Fontifying text from %d to %d, Face: %s Language: 
%s"
                            start end face language)))))))))
   `(jit-lock-bounds ,start . ,end))



reply via email to

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