From: Yuan Fu Date: Mon, 8 May 2023 19:58:19 +0000 (-0700) Subject: Fix treesit-node-top-level (bug#63374) X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=b625ccff870cbae785d21678161c59fe91fda7a8;p=emacs.git Fix treesit-node-top-level (bug#63374) * lisp/treesit.el (treesit-node-top-level): Fix the use of rx-to-string. --- diff --git a/lisp/treesit.el b/lisp/treesit.el index 1b1a7783a32..54f223dc40b 100644 --- a/lisp/treesit.el +++ b/lisp/treesit.el @@ -252,7 +252,7 @@ and more. See `treesit-thing-settings' for details. If INCLUDE-NODE is non-nil, return NODE if it satisfies PRED." (let ((pred (or pred (rx-to-string - `(bos ,(treesit-node-type node) eos)))) + `(seq bos ,(treesit-node-type node) eos)))) (result nil)) (cl-loop for cursor = (if include-node node (treesit-node-parent node))