From 17ed39cc8da1681bffc67907d3a76ef3d75917fd Mon Sep 17 00:00:00 2001 From: Yuan Fu Date: Tue, 22 Nov 2022 19:57:44 -0800 Subject: [PATCH] ; Remove obsolete use of inhibit-point-motion-hooks * lisp/treesit.el (treesit-font-lock-fontify-region): Remove it. --- lisp/treesit.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/treesit.el b/lisp/treesit.el index 3ea6fae4dfc..8fb6de73784 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -900,8 +900,7 @@ If LOUDLY is non-nil, display some debugging information." sub-node query (max (- start delta-start) (point-min)) (min (+ end delta-end) (point-max)))) - (end-time (current-time)) - (inhibit-point-motion-hooks t)) + (end-time (current-time))) ;; If for any query the query time is strangely long, ;; switch to fast mode (see comments above). (when (> (time-to-seconds (time-subtract end-time start-time)) -- 2.39.5