Skip to content

Commit 3743af3

Browse files
committed
[CI] Fix compilation for Emacs-30
1 parent ce94748 commit 3743af3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

clojure-ts-mode.el

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1129,8 +1129,8 @@ See `clojure-ts--standard-definition-node-name' for the implementation used.")
11291129

11301130
(defun clojure-ts--outline-level ()
11311131
"Return the current level of the outline heading at point."
1132-
(let* ((node (treesit-outline--at-point))
1133-
(node-text (treesit-node-text node)))
1132+
(when-let* ((node (treesit-thing-at (point) #'clojure-ts--outline-predicate))
1133+
(node-text (treesit-node-text node)))
11341134
(string-match ";;\\(;+\\) " node-text)
11351135
(- (match-end 1) (match-beginning 1))))
11361136

0 commit comments

Comments
 (0)