From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#61155: 29.0.60; build failures tree sitter Date: Mon, 30 Jan 2023 15:17:17 +0200 Message-ID: <834js85fhe.fsf@gnu.org> References: <7581-Sun29Jan2023210007+0000-jpff@codemist.co.uk> <877cx4z7lz.fsf@gmail.com> <87cz6w1c93.fsf@thornhill.no> Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="21063"; mail-complaints-to="usenet@ciao.gmane.io" Cc: rpluim@gmail.com, 61155@debbugs.gnu.org, jpff@codemist.co.uk To: Theodor Thornhill Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Mon Jan 30 14:18:26 2023 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1pMU3G-0005EN-7h for geb-bug-gnu-emacs@m.gmane-mx.org; Mon, 30 Jan 2023 14:18:26 +0100 Original-Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1pMU2w-00036w-Or; Mon, 30 Jan 2023 08:18:06 -0500 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMU2s-00036e-5Q for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:18:02 -0500 Original-Received: from debbugs.gnu.org ([209.51.188.43]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1pMU2r-000554-Tf for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:18:01 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1pMU2r-0006iK-OY for bug-gnu-emacs@gnu.org; Mon, 30 Jan 2023 08:18:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 30 Jan 2023 13:18:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 61155 X-GNU-PR-Package: emacs Original-Received: via spool by 61155-submit@debbugs.gnu.org id=B61155.167508465325770 (code B ref 61155); Mon, 30 Jan 2023 13:18:01 +0000 Original-Received: (at 61155) by debbugs.gnu.org; 30 Jan 2023 13:17:33 +0000 Original-Received: from localhost ([127.0.0.1]:46666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMU2O-0006hZ-UG for submit@debbugs.gnu.org; Mon, 30 Jan 2023 08:17:33 -0500 Original-Received: from eggs.gnu.org ([209.51.188.92]:53082) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1pMU2N-0006hL-KV for 61155@debbugs.gnu.org; Mon, 30 Jan 2023 08:17:31 -0500 Original-Received: from fencepost.gnu.org ([2001:470:142:3::e]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMU2G-00052F-Ts; Mon, 30 Jan 2023 08:17:25 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=gnu.org; s=fencepost-gnu-org; h=References:Subject:In-Reply-To:To:From:Date: mime-version; bh=cI4Z10zAfZm3DLzMGN+8Po3OwCojYb6PWT49KPKm1X4=; b=Vhs7fQPl3j3s 31LixA55ZPWee0RHqq+koscvg2bPvEgq1L58/UAKGsuHVzcMHZSltlzncv5BcppOX9yxoV8v66ZAE T36ojbE29gDPG/vjZIorpbvzB2i2jpumfx98yf/+xb/qrdCdw48rqePD4A1HBbk7QEuKS0gkZVDJQ RZsBKYZEsl0Nxli6DHfEoOnUQQa2gf2R4+0D2L92M8uObiXfa0YJstgSy3B4ZDTzj+wQk2m1fpGwa eEhWSFXPHMaIf5ewI6pNJOWAyOwT3RQehl8v/G7KzVMpenSc+i5KORZ4WY0Qf9ELYHSN1GgrAaU1x rF8/3tZCQNmuVTeQAbZijA==; Original-Received: from [87.69.77.57] (helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1pMU2G-0005vp-3j; Mon, 30 Jan 2023 08:17:24 -0500 In-Reply-To: <87cz6w1c93.fsf@thornhill.no> (bug-gnu-emacs@gnu.org) X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane-mx.org@gnu.org Xref: news.gmane.io gmane.emacs.bugs:254421 Archived-At: > Cc: 61155@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" > > 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?