GNU bug report logs -
#61155
29.0.60; build failures tree sitter
Previous Next
Reported by: John <jpff <at> codemist.co.uk>
Date: Sun, 29 Jan 2023 21:02:02 UTC
Severity: normal
Found in version 29.0.60
Done: Eli Zaretskii <eliz <at> gnu.org>
Bug is archived. No further changes may be made.
Full log
Message #22 received at 61155 <at> debbugs.gnu.org (full text, mbox):
> Cc: 61155 <at> debbugs.gnu.org
> Date: Mon, 30 Jan 2023 12:40:40 +0100
> From: Theodor Thornhill via "Bug reports for GNU Emacs,
> the Swiss army knife of text editors" <bug-gnu-emacs <at> gnu.org>
>
> Can you try this and see if the error goes away?
>
> thanks,
> Theo
>
> diff --git a/lisp/treesit.el b/lisp/treesit.el
> index 92833fb007..d7e702bfb8 100644
> --- a/lisp/treesit.el
> +++ b/lisp/treesit.el
> @@ -568,7 +568,7 @@ treesit--font-lock-level-setter
> res)
> (let ((buffer (car buffers)))
> (with-current-buffer buffer
> - (if (treesit-parser-list)
> + (if (and (treesit-available-p) (treesit-parser-list))
> (loop (append res (list buffer)) (cdr buffers))
> (loop res (cdr buffers))))))))
I fixed this differently, please see the latest emacs-29 branch: I
disabled the loop altogether.
Why would we need to loop over buffers if tree-sitter is not
available?
This bug report was last modified 2 years and 112 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.